Copied!

ContentInfo

ContentInfo.php : 16
Extends ValueObject

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

publicSTATUS_ARCHIVED

ContentInfo.php : 23
public mixed STATUS_ARCHIVED = self::STATUS_TRASHED
Tags
Deprecated

Use ContentInfo::STATUS_TRASHED

publicSTATUS_DRAFT

ContentInfo.php : 18
public mixed STATUS_DRAFT = 0

publicSTATUS_PUBLISHED

ContentInfo.php : 19
public mixed STATUS_PUBLISHED = 1

publicSTATUS_TRASHED

ContentInfo.php : 20
public mixed STATUS_TRASHED = 2

Properties

public $alwaysAvailable

ContentInfo.php : 96

Indicates if the content is shown in the main language if its not present in an other requested language.

public bool $alwaysAvailable

public $contentTypeId

ContentInfo.php : 44

Content type Id.

public int $contentTypeId

public $currentVersionNo

ContentInfo.php : 59

Version number of the current published version.

public int $currentVersionNo

If the content is not published yet (newly created draft), will be 1.

public $id

ContentInfo.php : 30

Content's unique ID.

public mixed $id

public $isHidden

ContentInfo.php : 136

Flag indicating if content is currently hidden.

public bool $isHidden = false

public $isPublished

ContentInfo.php : 68
public bool $isPublished
Tags
Deprecated

Use SPI\ContentInfo::$status (with value ContentInfo::STATUS_PUBLISHED)

Flag indicating if content is currently published.

public $mainLanguageCode

ContentInfo.php : 110

The main language code of the content.

public string $mainLanguageCode

public $mainLocationId

ContentInfo.php : 120

Identifier of the main location.

public mixed $mainLocationId

If the content object has multiple locations, $mainLocationId will point to the main one.

public $modificationDate

ContentInfo.php : 82

Content modification date, as a UNIX timestamp.

public int $modificationDate

public $name

ContentInfo.php : 37

Computed name (via name schema) in the main language.

public string $name

public $ownerId

ContentInfo.php : 75

Content owner's id.

public int $ownerId

public $publicationDate

ContentInfo.php : 89

Content publication date, as a UNIX timestamp.

public int $publicationDate

public $remoteId

ContentInfo.php : 103

Remote identifier used as a custom identifier for the object.

public string $remoteId

public $sectionId

ContentInfo.php : 51

Section id the content is assigned to.

public int $sectionId

public $status

ContentInfo.php : 129

Status of the content.

public int $status

Replaces deprecated SPI\ContentInfo::$isPublished.

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

public __construct([array<string|int, mixed> $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> [] -

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

protected getProperties([array<string|int, mixed> $dynamicProperties = [] ]) : array<string|int, mixed>

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>