Copied!

ContentInfo

ContentInfo.php : 35
Extends ValueObject

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

Constants

publicSTATUS_DRAFT

ContentInfo.php : 37
public mixed STATUS_DRAFT = 0

publicSTATUS_PUBLISHED

ContentInfo.php : 38
public mixed STATUS_PUBLISHED = 1

publicSTATUS_TRASHED

ContentInfo.php : 39
public mixed STATUS_TRASHED = 2

Properties

protected $alwaysAvailable

ContentInfo.php : 92

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

protected bool $alwaysAvailable = false

protected $contentType

ContentInfo.php : 121
protected ContentType $contentType

protected $contentTypeId

ContentInfo.php : 49

The content type id of the Content object.

protected int $contentTypeId

protected $currentVersionNo

ContentInfo.php : 67

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

The unique id of the Content object.

protected int $id

protected $isHidden

ContentInfo.php : 119
protected bool $isHidden

protected $mainLanguage

ContentInfo.php : 125
protected Language $mainLanguage

protected $mainLanguageCode

ContentInfo.php : 102

The main language code of the Content object.

protected string $mainLanguageCode

protected $mainLocation

ContentInfo.php : 127
protected Location|null $mainLocation

protected $mainLocationId

ContentInfo.php : 110

Identifier of the main location.

protected int|null $mainLocationId = null

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

protected $modificationDate

ContentInfo.php : 82

Content modification date.

protected DateTimeInterface|null $modificationDate

protected $name

ContentInfo.php : 56

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 : 129
protected User $owner

protected $ownerId

ContentInfo.php : 77

The owner of the Content object.

protected int $ownerId

protected $published

ContentInfo.php : 72

True if there exists a published version, false otherwise.

protected bool $published

protected $publishedDate

ContentInfo.php : 87

Content publication date.

protected DateTimeInterface|null $publishedDate

protected $remoteId

ContentInfo.php : 97

Remote identifier used as a custom identifier for the object.

protected string $remoteId

protected $section

ContentInfo.php : 123
protected Section $section

protected $sectionId

ContentInfo.php : 61

The section to which the Content object is assigned.

protected int $sectionId

protected $status

ContentInfo.php : 117

Status of the content.

protected int $status

Replaces deprecated API\ContentInfo::$published.

Methods

public__construct()

ValueObject.php : 32

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 : 151
public getContentType() : ContentType

Return values

ContentType

publicgetId()

ContentInfo.php : 191
public getId() : int

Return values

int

publicgetMainLanguage()

ContentInfo.php : 166
public getMainLanguage() : Language

Return values

Language

publicgetMainLanguageCode()

ContentInfo.php : 171
public getMainLanguageCode() : string

Return values

string

publicgetMainLocation()

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

Return values

Location|null

publicgetMainLocationId()

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

Return values

int|null

publicgetName()

ContentInfo.php : 196
public getName() : string

Return values

string

publicgetOwner()

ContentInfo.php : 181
public getOwner() : User

Return values

User

publicgetSection()

ContentInfo.php : 156
public getSection() : Section

Return values

Section

publicgetSectionId()

ContentInfo.php : 161
public getSectionId() : int

Return values

int

publicisDraft()

ContentInfo.php : 131
public isDraft() : bool

Return values

bool

publicisHidden()

ContentInfo.php : 146
public isHidden() : bool

Return values

bool

publicisPublished()

ContentInfo.php : 136
public isPublished() : bool

Return values

bool

publicisTrashed()

ContentInfo.php : 141
public isTrashed() : bool

Return values

bool

protectedgetProperties()

ValueObject.php : 53

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>

Attributes
#[Ignore]