◆ getDisplayValue()
getDisplayValue |
( |
|
$entities = true | ) |
|
Returns the display/rendered value of this datafield
- Parameters
-
bool | $entities | Should html entities be encoded (defaults to true) |
- Returns
- String containg the rendered value
◆ getHTML()
getHTML |
( |
|
$name = '' , |
|
|
|
$variables = [] |
|
) |
| |
Returns the according input elements as html for this datafield
- Parameters
-
String | $name | Name prefix of the associated input |
Array | $variables | Additional variables |
- Returns
- String containing the required html
◆ getNumberParts()
Retturns the individual parts of the telephone number. The resulting array is always padded to contain at least three items.
- Returns
- array containing the individual parts.
◆ isEmpty()
Checks if the datafield is empty (was not set)
- Returns
- bool true if empty, else false
◆ isValid()
Returns whether the datafield contents are valid
- Returns
- boolean indicating whether the datafield contents are valid
◆ numberOfHTMLFields()
Returns the number of html fields this datafield uses for input.
- Returns
- int representing the number of html fields
◆ setValueFromSubmit()
setValueFromSubmit |
( |
|
$value | ) |
|
Sets the value from a post request
- Parameters
-
mixed | $submitted_value | The value from request |
◆ $template
The documentation for this class was generated from the following file: