◆ __construct()
| __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 |
Reimplemented from DataFieldEntry.
◆ 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
Reimplemented from DataFieldEntry.
Reimplemented in DataFieldTextmarkupi18nEntry.
◆ getHTML()
| getHTML |
( |
|
$name = '', |
|
|
|
$variables = array() |
|
) |
| |
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
Reimplemented from DataFieldEntry.
◆ getLocaleNames()
Returns an array containing the names for the html element by locale.
- Parameters
-
| string | $name | Base name of the element |
- Returns
- array
◆ setContentLanguage()
| setContentLanguage |
( |
|
$language | ) |
|
Sets the prefered content language if this is an i18n datafield.
- Parameters
-
| string | $language | The prefered display language |
Reimplemented from DataFieldEntry.
◆ setValueFromSubmit()
| setValueFromSubmit |
( |
|
$submitted_value | ) |
|
◆ store()
Stores this datafield entry
- Returns
- int representing the number of changed entries
Reimplemented from DataFieldEntry.
The documentation for this class was generated from the following file: