Search:

# CWIS Developers Documentation

- Main Page
- Classes
- Files

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# CheckboxFormField Class Reference

Generator for checkbox input fields. More...

Inheritance diagram for CheckboxFormField:

[legend]
Collaboration diagram for CheckboxFormField:

[legend]
List of all members.

## Public Member Functions
| CheckboxFormField ($Name, $Label)
| Object constructor.
| PrintField ($DisplayErrorIndicator=FALSE)
| Generate HTML for the int field and label.
| PrintInput ($DisplayErrorIndicator=FALSE)
| Generate HTML just for the input field.

## Detailed Description

Generator for checkbox input fields.

Definition at line 8 of file CheckboxFormField.php.

## Member Function Documentation

CheckboxFormField::CheckboxFormField | ( | $ | Name,
|  | $ | Label |
| ) |  |  |

Object constructor.

Parameters:

  | Name | internal name of the checkbox field, used as the id= in HTML
  | Label | Display name of the checkbox field, showed to the user

Definition at line 17 of file CheckboxFormField.php.

References FormField::FormField().

CheckboxFormField::PrintField | ( | $ | DisplayErrorIndicator = `FALSE` | ) |

Generate HTML for the int field and label.

Parameters:

  | DisplayErrorIndicator | Setting TRUE will generate html error indicators (OPTIONAL)

Reimplemented from FormField.

Definition at line 27 of file CheckboxFormField.php.

References PrintInput(), and FormField::PrintLabel().

CheckboxFormField::PrintInput | ( | $ | DisplayErrorIndicator = `FALSE` | ) |

Generate HTML just for the input field.

Parameters:

  | DisplayErrorIndicator | Setting TRUE will generate html error indicators (OPTIONAL)

Definition at line 38 of file CheckboxFormField.php.

Referenced by PrintField().

Here is the caller graph for this function:

The documentation for this class was generated from the following file:

- CheckboxFormField.php