This class represents a field of a content object.
Properties¶
$fieldDefIdentifier
¶
|
|
the field definition identifier
$fieldDefIdentifier
¶
The field definition identifier.
|
|
$fieldTypeIdentifier
¶
|
|
field type identifier
$fieldTypeIdentifier
¶
Field type identifier.
|
|
$id
¶
|
|
an internal id of the field
$id
¶
The field id.
|
|
Value of null
indicates the field is virtual
and is not persisted (yet).
$languageCode
¶
|
|
the language code of the field
$languageCode
¶
the language code.
|
|
$value
¶
|
|
the value of the field
$value
¶
A field type value or a value type which can be converted by the corresponding field type.
|
|
Methods¶
__construct()
¶
Construct object optionally with a set of properties.
|
|
Readonly properties values must be set using $properties as they are not writable anymore after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string|int, mixed> | [] | - |
getFieldDefinitionIdentifier()
¶
|
|
Return values
string
getFieldTypeIdentifier()
¶
|
|
Return values
string
getId()
¶
|
|
Return values
int|null
getLanguageCode()
¶
|
|
Return values
string|null
getValue()
¶
|
|
isVirtual()
¶
|
|
Return values
bool
getProperties()
¶
Function where list of properties are returned.
|
|
Used by attributes(), override to add dynamic properties
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<string|int, mixed> | [] |
Additional dynamic properties exposed on the object |
Return values
array<string|int, mixed>