This class provides all version independent information of the content object.
It is similar to ContentInfo, but for the persistence layer. Thus it only contains raw data.
Constants¶
STATUS_ARCHIVED ¶
|
|
Tags
STATUS_DRAFT ¶
|
|
STATUS_PUBLISHED ¶
|
|
STATUS_TRASHED ¶
|
|
Properties¶
$alwaysAvailable¶
Indicates if the content is shown in the main language if its not present in an other requested language.
|
|
$contentTypeId¶
Content type Id.
|
|
$currentVersionNo¶
Version number of the current published version.
|
|
If the content is not published yet (newly created draft), will be 1.
$id¶
Content's unique ID.
|
|
$isHidden¶
Flag indicating if content is currently hidden.
|
|
$isPublished¶
|
|
Tags
$mainLanguageCode¶
The main language code of the content.
|
|
$mainLocationId¶
Identifier of the main location.
|
|
If the content object has multiple locations, $mainLocationId will point to the main one.
$modificationDate¶
Content modification date, as a UNIX timestamp.
|
|
$name¶
Computed name (via name schema) in the main language.
|
|
$ownerId¶
Content owner's id.
|
|
$publicationDate¶
Content publication date, as a UNIX timestamp.
|
|
$remoteId¶
Remote identifier used as a custom identifier for the object.
|
|
$sectionId¶
Section id the content is assigned to.
|
|
$status¶
Status of the content.
|
|
Replaces deprecated SPI\ContentInfo::$isPublished.
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> | [] | - |
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>