dmBridge PHP API
DMSelectField Class Reference

Encapsulates an HTML <select> element. More...

Inheritance diagram for DMSelectField:

Public Member Functions


Detailed Description

Encapsulates an HTML <select> element.

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

Definition at line 15 of file DMSelectField.php.


Member Function Documentation

DMSelectField::addOption ( value,
label = null 
)

Adds an <option> element (menu choice) with the specified value and label.

Parameters:
stringvalue
stringlabel Label of the choice, for option elements
Since:
0.4

Definition at line 65 of file DMSelectField.php.

DMSelectField::getHTMLTag ( )
Returns:
HTML select element
Since:
0.4

Implements DMFormField.

Definition at line 24 of file DMSelectField.php.

DMSelectField::getOptions ( )
Returns:
array of arrays with 'label' and 'value' keys
Since:
0.4

Definition at line 80 of file DMSelectField.php.

Referenced by getHTMLTag().


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