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

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 : 31

Construct object optionally with a set of properties.

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

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 : 54

Returns list of available properties' names.

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

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>

Tags
Serializerignore

()