dmBridge PHP API
DMFormField Interface Reference
Inheritance diagram for DMFormField:

Public Member Functions


Detailed Description


Constructor & Destructor Documentation

DMFormField::__construct ( name)
Parameters:
stringname The HTML name of the field.

Implemented in DMCheckboxField, and DMRadioField.


Member Function Documentation

DMFormField::addAttribute ( k,
v 
)
Parameters:
stringk The HTML attribute key
stringv The HTML attribute value
DMFormField::getHTMLTag ( )
Returns:
string The field as an HTML tag.

Implemented in DMCheckboxField, DMHiddenField, DMPasswordField, DMRadioField, DMSelectField, DMTextareaField, and DMTextField.

DMFormField::getLabel ( )
Returns:
The HTML label of the field.
DMFormField::getName ( )
Returns:
string The HTML name of the field.
DMFormField::getValue ( )
Returns:
string The value of the field.
DMFormField::isValid ( )
Returns:
boolean Whether the field's value is valid according to the current constraints on the field.
DMFormField::setLabel ( str)
Parameters:
stringstr The HTML label of the field.
DMFormField::setMaxLength ( int)
Parameters:
intint The maximum length of the value of the field.
DMFormField::setMinLength ( int)
Parameters:
intint The minimum length of the value of the field.
DMFormField::setRequired ( bool)
Parameters:
boolbool Whether the field is required to be filled in.
DMFormField::setType ( type)
Parameters:
inttype DMFormFieldType constant
DMFormField::setValue ( value)
Parameters:
stringvalue The value of the field.

The documentation for this interface was generated from the following file:
 All Data Structures Functions Variables