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 aren't writable anymore
after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string, 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()
¶
Returns list of available properties' names.
|
|
Override to add dynamic properties.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<int, string> | [] |
Additional dynamic properties exposed on the object |
Return values
array<int, string>