Copied!

ContentInfo

ContentInfo.php : 34
Extends ValueObject

This class provides all version independent information of the Content object.

Constants

publicSTATUS_DRAFT

ContentInfo.php : 36
public mixed STATUS_DRAFT = 0

publicSTATUS_PUBLISHED

ContentInfo.php : 37
public mixed STATUS_PUBLISHED = 1

publicSTATUS_TRASHED

ContentInfo.php : 38
public mixed STATUS_TRASHED = 2

Properties

public $alwaysAvailable read-only

ContentInfo.php
public bool $alwaysAvailable

Indicates if the Content object is shown in the mainlanguage if its not present in an other requested language

public $contentTypeId read-only

ContentInfo.php
public int $contentTypeId

The unique id of the content type item the Content object is an instance of

public $currentVersionNo read-only

ContentInfo.php
public int $currentVersionNo

Current Version number is the version number of the published version or the version number of a newly created draft (which is 1).

public $id read-only

ContentInfo.php
public int $id

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use ContentInfo::getId() instead.

public $isHidden read-only

ContentInfo.php
public bool $isHidden

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use ContentInfo::isHidden() instead.

public $mainLanguageCode read-only

ContentInfo.php
public string $mainLanguageCode

The main language code of the Content object. If the available flag is set to true the Content is shown in this language if the requested language does not exist.

public $mainLocationId read-only

ContentInfo.php
public int|null $mainLocationId

@deprecated Use ContentInfo::getMainLocationId instead

public $modificationDate read-only

ContentInfo.php
public DateTime $modificationDate

Content object modification date

public $name read-only

ContentInfo.php
public string $name

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use ContentInfo::getName() instead.

public $ownerId read-only

ContentInfo.php
public int $ownerId

the user id of the owner of the Content object

public $published read-only

ContentInfo.php
public bool $published

true if there exists a published version false otherwise

public $publishedDate read-only

ContentInfo.php
public DateTime $publishedDate

date of the first publish

public $remoteId read-only

ContentInfo.php
public string $remoteId

a global unique id of the Content object

public $sectionId read-only

ContentInfo.php
public int $sectionId

@deprecated 4.6.2 Use ContentInfo::getSectionId instead. The section to which the Content object is assigned

public $status read-only

ContentInfo.php
public int $status

status of the Content object

protected $alwaysAvailable

ContentInfo.php : 111

Indicates if the Content object is shown in the mainlanguage if its not present in an other requested language.

protected bool $alwaysAvailable

protected $contentType

ContentInfo.php : 150
protected ContentType $contentType

protected $contentTypeId

ContentInfo.php : 52

The content type id of the Content object.

protected int $contentTypeId

protected $currentVersionNo

ContentInfo.php : 76

Current Version number is the version number of the published version or the version number of a newly created draft (which is 1).

protected int $currentVersionNo

protected $id

ContentInfo.php : 45

The unique id of the Content object.

protected int $id

protected $isHidden

ContentInfo.php : 147
protected bool $isHidden

protected $mainLanguage

ContentInfo.php : 156
protected Language $mainLanguage

protected $mainLanguageCode

ContentInfo.php : 125

The main language code of the Content object.

protected string $mainLanguageCode

protected $mainLocation

ContentInfo.php : 159
protected Location|null $mainLocation

protected $mainLocationId

ContentInfo.php : 135

Identifier of the main location.

protected int|null $mainLocationId

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

protected $modificationDate

ContentInfo.php : 97

Content modification date.

protected DateTime $modificationDate

protected $name

ContentInfo.php : 61

The computed name (via name schema) in the main language of the Content object.

protected string $name

For names in other languages then main see VersionInfo

protected $owner

ContentInfo.php : 162
protected User $owner

protected $ownerId

ContentInfo.php : 90

The owner of the Content object.

protected int $ownerId

protected $published

ContentInfo.php : 83

True if there exists a published version, false otherwise.

protected bool $published

Constant.

protected $publishedDate

ContentInfo.php : 104

Content publication date.

protected DateTime $publishedDate

protected $remoteId

ContentInfo.php : 118

Remote identifier used as a custom identifier for the object.

protected string $remoteId

protected $section

ContentInfo.php : 153
protected Section $section

protected $sectionId

ContentInfo.php : 68

The section to which the Content object is assigned.

protected int $sectionId

protected $status

ContentInfo.php : 144

Status of the content.

protected int $status

Replaces deprecated API\ContentInfo::$published.

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> [] -

publicgetContentType()

ContentInfo.php : 193
public getContentType() : ContentType

Return values

ContentType

publicgetId()

ContentInfo.php : 233
public getId() : int

Return values

int

publicgetMainLanguage()

ContentInfo.php : 208
public getMainLanguage() : Language

Return values

Language

publicgetMainLanguageCode()

ContentInfo.php : 213
public getMainLanguageCode() : string

Return values

string

publicgetMainLocation()

ContentInfo.php : 218
public getMainLocation() : Location|null

Return values

Location|null

publicgetMainLocationId()

ContentInfo.php : 228
public getMainLocationId() : int|null

Return values

int|null

publicgetName()

ContentInfo.php : 238
public getName() : string

Return values

string

publicgetOwner()

ContentInfo.php : 223
public getOwner() : User

Return values

User

publicgetSection()

ContentInfo.php : 198
public getSection() : Section

Return values

Section

publicgetSectionId()

ContentInfo.php : 203
public getSectionId() : int

Return values

int

publicisDraft()

ContentInfo.php : 167
public isDraft() : bool

Return values

bool

publicisHidden()

ContentInfo.php : 188
public isHidden() : bool

Return values

bool

publicisPublished()

ContentInfo.php : 175
public isPublished() : bool

Return values

bool

publicisTrashed()

ContentInfo.php : 183
public isTrashed() : bool

Return values

bool

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>