This class provides all version independent information of the Content object.
Constants¶
STATUS_DRAFT ¶
|
|
STATUS_PUBLISHED ¶
|
|
STATUS_TRASHED ¶
|
|
Properties¶
$alwaysAvailable
¶
|
|
Indicates if the Content object is shown in the mainlanguage if its not present in an other requested language
$alwaysAvailable
¶
Indicates if the Content object is shown in the mainlanguage if its not present in an other requested language.
|
|
$contentTypeId
¶
|
|
The unique id of the content type item the Content object is an instance of
$contentTypeId
¶
The content type id of the Content object.
|
|
$currentVersionNo
¶
|
|
Current Version number is the version number of the published version or the version number of a newly created draft (which is 1).
$currentVersionNo
¶
Current Version number is the version number of the published version or the version number of a newly created draft (which is 1).
|
|
$id
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use ContentInfo::getId() instead.
$id
¶
The unique id of the Content object.
|
|
$isHidden
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use ContentInfo::isHidden() instead.
$isHidden
¶
|
|
$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.
$mainLanguageCode
¶
The main language code of the Content object.
|
|
$mainLocationId
¶
|
|
@deprecated Use ContentInfo::getMainLocationId instead
$mainLocationId
¶
Identifier of the main location.
|
|
If the Content object has multiple locations, $mainLocationId will point to the main one.
$modificationDate
¶
|
|
Content object modification date
$modificationDate
¶
Content modification date.
|
|
$name
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use ContentInfo::getName() instead.
$name
¶
The computed name (via name schema) in the main language of the Content object.
|
|
For names in other languages then main see VersionInfo
$ownerId
¶
|
|
the user id of the owner of the Content object
$ownerId
¶
The owner of the Content object.
|
|
$published
¶
|
|
true if there exists a published version false otherwise
$published
¶
True if there exists a published version, false otherwise.
|
|
Constant.
$publishedDate
¶
|
|
date of the first publish
$publishedDate
¶
Content publication date.
|
|
$remoteId
¶
|
|
a global unique id of the Content object
$remoteId
¶
Remote identifier used as a custom identifier for the object.
|
|
$sectionId
¶
|
|
@deprecated 4.6.2 Use ContentInfo::getSectionId instead. The section to which the Content object is assigned
$sectionId
¶
The section to which the Content object is assigned.
|
|
$status
¶
|
|
status of the Content object
$status
¶
Status of the content.
|
|
Replaces deprecated API\ContentInfo::$published.
$contentType
¶
|
|
$mainLanguage
¶
|
|
$mainLocation
¶
|
|
$owner
¶
|
|
$section
¶
|
|
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> | [] | - |
getContentType()
¶
|
|
Return values
getId()
¶
|
|
Return values
int
getMainLanguage()
¶
|
|
Return values
getMainLanguageCode()
¶
|
|
Return values
string
getMainLocation()
¶
|
|
Return values
Location|null
getMainLocationId()
¶
|
|
Return values
int|null
getName()
¶
|
|
Return values
string
getOwner()
¶
|
|
Return values
getSection()
¶
|
|
Return values
getSectionId()
¶
|
|
Return values
int
isDraft()
¶
|
|
Return values
bool
isHidden()
¶
|
|
Return values
bool
isPublished()
¶
|
|
Return values
bool
isTrashed()
¶
|
|
Return values
bool
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>