__construct |
( |
DataField |
$datafield = null , |
|
|
|
$rangeID = '' , |
|
|
|
$value = null |
|
) |
| |
Constructs this datafield
- Parameters
-
DataField | $datafield | Underlying model |
mixed | $range_id | Range id (or array with range id and secondary range id) |
mixed | $value | Value |
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 |
( |
|
$name = '' , |
|
|
|
$variables = [] |
|
) |
| |
Returns the 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
Returns an array containing the names for the html element by locale.
- Parameters
-
string | $name | Base name of the element |
- Returns
- array
setContentLanguage |
( |
|
$language | ) |
|
Sets the prefered content language if this is an i18n datafield.
- Parameters
-
string | $language | The prefered display language |
setValueFromSubmit |
( |
|
$submitted_value | ) |
|
Sets the value from a post request
- Parameters
-
mixed | $submitted_value | The value from request |
Stores this datafield entry
- Returns
- int representing the number of changed entries
The documentation for this class was generated from the following file: