Creates a new TFormText element (basic text field).
TFormRadio
TFormRadio
(string $name, string $displayname, string $class, mixed $storeValue, [mixed $checked = false], [bool $store = true], bool $required, array $elements, string $value)
-
string
$name: The name of the element. This should correspond to the field names if using with TDBForm, and should not include any spaces or special characters.
-
string
$displayname: The name that should show up to the user for this field.
-
string
$class: The HTML Class to use for the element
-
bool
$required: True if one of the values needs to be selected
-
array
$elements: The elements to go in the box. Key field is value, value is the displayed value.
-
string
$value: The initial value for the field. Note if using a TDBForm this value will be overridden by loadValues so it is effectively only the default for new entries.
-
bool
$store: Whether this value is persistent. Used by TDBForm to decide to save/load this value from database.
void
getValue
([mixed $display = false])
Redefinition of:
- TFormElement::getValue()
- Returns a textual description of the current value
Inherited Methods
Inherited From TFormElement
TFormElement::TFormElement()
TFormElement::getValue()
TFormElement::output()
TFormElement::setParent()
TFormElement::setValue()
TFormElement::validate()