CWIS Developer Documentation
|
Generator for checkbox input fields. More...
Public Member Functions | |
__construct ($Name, $Label) | |
Object constructor. More... | |
PrintField ($DisplayErrorIndicator=FALSE) | |
Generate HTML for the int field and label. More... | |
PrintInput ($DisplayErrorIndicator=FALSE) | |
Generate HTML just for the input field. More... | |
![]() | |
__construct ($Name, $IsRequired, $Label, $ValidFunc, $ValidMsgs) | |
Object Constructor. More... | |
Name ($NewVal=NULL) | |
Get or set the name. More... | |
IsRequired ($NewVal=NULL) | |
Get/set IsRequired. More... | |
Label ($NewVal=NULL) | |
Get or set the form field label as shown to the user. More... | |
Value ($NewVal=NULL) | |
Get or set the form field value. More... | |
IsPassword () | |
Determine if this form field is a password form field. More... | |
PrintField ($DisplayErrorIndicator=FALSE) | |
Print the form field label and generate input tags for this form field. More... | |
PrintLabel ($DisplayErrorIndicator=FALSE) | |
Print the label for this form field without generating the input tags. More... | |
IsInvalidValue ($Value) | |
Check the validity of the form field's value. More... | |
GetInvalidValueMessage ($ErrorCode) | |
Map an error code from IsInvalidValue to an error message. More... | |
Additional Inherited Members | |
![]() | |
$MyName | |
$MyIsRequired | |
$MyLabel | |
$MyValue | |
$MyValidFunc | |
$MyValidMsgs | |
Generator for checkbox input fields.
Definition at line 14 of file CheckboxFormField.php.
CheckboxFormField::__construct | ( | $Name, | |
$Label | |||
) |
Object constructor.
string | $Name | Internal name of the checkbox field, used as the id= in HTML |
string | $Label | Display name of the checkbox field, showed to the user |
Definition at line 24 of file CheckboxFormField.php.
CheckboxFormField::PrintField | ( | $DisplayErrorIndicator = FALSE | ) |
Generate HTML for the int field and label.
bool | $DisplayErrorIndicator | Setting TRUE will generate html error indicators. (OPTIONAL) |
Definition at line 34 of file CheckboxFormField.php.
References PrintInput(), and FormField\PrintLabel().
CheckboxFormField::PrintInput | ( | $DisplayErrorIndicator = FALSE | ) |
Generate HTML just for the input field.
bool | $DisplayErrorIndicator | Setting TRUE will generate html error indicators (OPTIONAL) |
Definition at line 45 of file CheckboxFormField.php.
Referenced by PrintField().