Class representing a relation between content.
Constants¶
ASSET ¶
the relation type ASSET is set for a relation to asset in an attribute value.
|
|
COMMON ¶
The relation type COMMON is a general relation between object set by a user.
|
|
EMBED ¶
the relation type EMBED is set for a relation which is anchored as embedded link in an attribute value.
|
|
FIELD ¶
the relation type FIELD is set for a relation which is part of an relation attribute value.
|
|
LINK ¶
the relation type LINK is set for a relation which is anchored as link in an attribute value.
|
|
Properties¶
$destinationContentInfo¶
|
|
$id¶
|
|
the internal id of the relation
$sourceContentInfo¶
|
|
$sourceFieldDefinitionIdentifier¶
|
|
the field definition identifier of the field where this relation is anchored if the relation is of type EMBED, LINK, or ATTRIBUTE
$type¶
|
|
The relation type bitmask containing one or more of Relation::COMMON, Relation::EMBED, Relation::LINK, Relation::FIELD
$id¶
Id of the relation.
|
|
$sourceFieldDefinitionIdentifier¶
Source content type Field Definition Id.
|
|
For relation not of type RelationType::COMMON this field denotes the field definition id of the attribute where the relation is anchored.
$type¶
The relation type bitmask.
|
|
Tags
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> | [] | - |
getDestinationContentInfo() ¶
the content of the destination content of the relation.
|
|
Return values
getSourceContentInfo() ¶
the content of the source content of the relation.
|
|
Return values
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>