dmBridge PHP API
DMAbstractFormField Class Reference

Abstract base class for class representations of HTML form elements. More...

Inheritance diagram for DMAbstractFormField:

Public Member Functions

Protected Member Functions

Protected Attributes


Detailed Description

Abstract base class for class representations of HTML form elements.

Author:
Alex Dolski <alex.dolski@unlv.edu> http://www.opensource.org/licenses/mit-license.php

Definition at line 15 of file DMAbstractFormField.php.


Constructor & Destructor Documentation

DMAbstractFormField::__construct ( name)
Parameters:
stringname
Since:
0.4

Reimplemented in DMCheckboxField, and DMRadioField.

Definition at line 55 of file DMAbstractFormField.php.


Member Function Documentation

DMAbstractFormField::addAllowedValue ( v)
Parameters:
v
Since:
0.4

Definition at line 71 of file DMAbstractFormField.php.

DMAbstractFormField::addAttribute ( k,
v 
)
Parameters:
k
v
Since:
0.4

Definition at line 88 of file DMAbstractFormField.php.

DMAbstractFormField::getAllowedValues ( ) [protected]
Returns:
array
Since:
0.4

Definition at line 63 of file DMAbstractFormField.php.

DMAbstractFormField::getAttributes ( ) [protected]
DMAbstractFormField::getForm ( )
Returns:
DMAbstractForm

Definition at line 109 of file DMAbstractFormField.php.

Referenced by getHTMLName().

DMAbstractFormField::getLabel ( )
Returns:
string
Since:
0.4

Definition at line 124 of file DMAbstractFormField.php.

DMAbstractFormField::getMax ( ) [protected]
Returns:
int
Since:
0.4

Definition at line 160 of file DMAbstractFormField.php.

Referenced by DMTextField::getHTMLTag().

DMAbstractFormField::getMaxLength ( ) [protected]
Returns:
int
Since:
0.4

Definition at line 176 of file DMAbstractFormField.php.

Referenced by DMTextField::getHTMLTag(), and DMPasswordField::getHTMLTag().

DMAbstractFormField::getMin ( ) [protected]
Returns:
int
Since:
0.4

Definition at line 192 of file DMAbstractFormField.php.

DMAbstractFormField::getMinLength ( ) [protected]
Returns:
int
Since:
0.4

Definition at line 208 of file DMAbstractFormField.php.

DMAbstractFormField::getName ( )
Returns:
string
Since:
0.4

Definition at line 224 of file DMAbstractFormField.php.

Referenced by getHTMLName().

DMAbstractFormField::getStaticValidationMessage ( ) [protected]
Returns:
string
Since:
0.4

Definition at line 256 of file DMAbstractFormField.php.

DMAbstractFormField::getType ( ) [protected]
Returns:
int One of the DMFormFieldType constants
Since:
0.4

Definition at line 272 of file DMAbstractFormField.php.

DMAbstractFormField::getValue ( )
DMAbstractFormField::isRequired ( ) [protected]
Returns:
Boolean
Since:
0.4

Definition at line 240 of file DMAbstractFormField.php.

DMAbstractFormField::setEnabled ( enabled)
Parameters:
boolenabled

Definition at line 102 of file DMAbstractFormField.php.

DMAbstractFormField::setForm ( DMAbstractForm form)
Parameters:
DMAbstractFormform

Definition at line 116 of file DMAbstractFormField.php.

DMAbstractFormField::setLabel ( str)
Parameters:
stringstr
Since:
0.4

Definition at line 132 of file DMAbstractFormField.php.

DMAbstractFormField::setMax ( int)
Parameters:
int
Since:
0.4

Definition at line 168 of file DMAbstractFormField.php.

DMAbstractFormField::setMaxLength ( int)
Parameters:
int
Since:
0.4

Definition at line 184 of file DMAbstractFormField.php.

DMAbstractFormField::setMin ( int)
Parameters:
int
Since:
0.4

Definition at line 200 of file DMAbstractFormField.php.

DMAbstractFormField::setMinLength ( int)
Parameters:
int
Since:
0.4

Definition at line 216 of file DMAbstractFormField.php.

DMAbstractFormField::setName ( name) [protected]
Parameters:
stringname
Since:
0.4

Definition at line 232 of file DMAbstractFormField.php.

Referenced by __construct().

DMAbstractFormField::setRequired ( bool)
Parameters:
Booleanbool
Since:
0.4

Definition at line 248 of file DMAbstractFormField.php.

Referenced by DMRadioField::__construct(), and DMCheckboxField::__construct().

DMAbstractFormField::setStaticValidationMessage ( str)
Parameters:
stringstr
Since:
0.4

Definition at line 264 of file DMAbstractFormField.php.

DMAbstractFormField::setType ( type)
Parameters:
inttype DMFormFieldType constant
Since:
0.4

Definition at line 280 of file DMAbstractFormField.php.

DMAbstractFormField::setUserData ( bool)
Parameters:
bool

Definition at line 294 of file DMAbstractFormField.php.

DMAbstractFormField::setValue ( value)
Parameters:
stringvalue
Since:
0.4

Definition at line 335 of file DMAbstractFormField.php.


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