WTControl Class
A HTML Control
Item Index
Methods
- getControlFormValue static
- getControlHTML static
Methods
getControlFormValue
(
String
static
-
formFieldName -
attributeInfo -
formValues
Get the value from a form request which used the control
Parameters:
-
formFieldNameStringThe name of the control in the form
-
attributeInfoArrayAn associative array of information about the control, should contain the key "Attribute Type"
-
formValuesArrayAn associative array of the values sent in the request from the form
Returns:
String:
The value for the control
getControlHTML
(
String
static
-
formFieldName -
attributeInfo -
value
Return the HTML for a control
Example:
print WTControl::getControlHTML("date", Array("Attribute Type" => "Date"), "2012-01-01");
Parameters:
-
formFieldNameStringThe name of the control
-
attributeInfoArrayAn associative array of information about the control, should contain the key "Attribute Type", can contain "Attribute Settings"
-
valueStringThe value of the control
Returns:
String:
the HTML for the control
