Setup/Initialization | |
OptionFormField ($Name, $IsRequired, $Label, $Length, $Options, $ValidFunc=NULL, $ValidMsgs=NULL) | |
Object constructor. | |
Accessors | |
Length ($NewVal=NULL) | |
Get or set the length of the display field. | |
Options ($NewVal=NULL) | |
Get or set the list of options displayed by this field. | |
Display | |
PrintInput ($DisplayErrorIndicator=FALSE) | |
Generate HTML representing this object. |
Definition at line 8 of file OptionFormField.php.
OptionFormField::Length | ( | $ | NewVal = NULL |
) |
Get or set the length of the display field.
NewVal | (OPTIONAL) |
Definition at line 44 of file OptionFormField.php.
OptionFormField::OptionFormField | ( | $ | Name, | |
$ | IsRequired, | |||
$ | Label, | |||
$ | Length, | |||
$ | Options, | |||
$ | ValidFunc = NULL , |
|||
$ | ValidMsgs = NULL | |||
) |
Object constructor.
Name | Internal name for this option, used for html id= | |
IsRequired | ||
Label | Display label, shown to user in generated html | |
Length | Maximum length allowed | |
Options | Names of the options in this group, an array | |
ValidFunc | Function to check the validity of this field | |
ValidMsgs | Error messages associated with error codes from ValidFunc |
Definition at line 25 of file OptionFormField.php.
References FormField::FormField().
OptionFormField::Options | ( | $ | NewVal = NULL |
) |
Get or set the list of options displayed by this field.
NewVal | An array of strings to use for option names (OPTIONAL) |
Definition at line 51 of file OptionFormField.php.
OptionFormField::PrintInput | ( | $ | DisplayErrorIndicator = FALSE |
) |
Generate HTML representing this object.
DisplayErrorIndicator | (OPTIONAL) |
Definition at line 62 of file OptionFormField.php.
References FormField::Value().