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¶
                 STATUS_ARCHIVED        ¶
STATUS_ARCHIVED        ¶
    
        |  |  | 
Tags
                 STATUS_DRAFT        ¶
STATUS_DRAFT        ¶
    
        |  |  | 
                 STATUS_PUBLISHED        ¶
STATUS_PUBLISHED        ¶
    
        |  |  | 
                 STATUS_TRASHED        ¶
STATUS_TRASHED        ¶
    
        |  |  | 
Properties¶
                 $alwaysAvailable
            ¶
        $alwaysAvailable
            ¶
    
        Indicates if the content is shown in the main language if its not present in an other requested language.
|  |  | 
                 $contentTypeId
            ¶
        $contentTypeId
            ¶
    
        Content type Id.
|  |  | 
                 $currentVersionNo
            ¶
        $currentVersionNo
            ¶
    
        Version number of the current published version.
|  |  | 
If the content is not published yet (newly created draft), will be 1.
                 $id
            ¶
        $id
            ¶
    
        Content's unique ID.
|  |  | 
                 $isHidden
            ¶
        $isHidden
            ¶
    
        Flag indicating if content is currently hidden.
|  |  | 
                 $isPublished
            ¶
        $isPublished
            ¶
    
        |  |  | 
Tags
                 $mainLanguageCode
            ¶
        $mainLanguageCode
            ¶
    
        The main language code of the content.
|  |  | 
                 $mainLocationId
            ¶
        $mainLocationId
            ¶
    
        Identifier of the main location.
|  |  | 
If the content object has multiple locations, $mainLocationId will point to the main one.
                 $modificationDate
            ¶
        $modificationDate
            ¶
    
        Content modification date, as a UNIX timestamp.
|  |  | 
                 $name
            ¶
        $name
            ¶
    
        Computed name (via name schema) in the main language.
|  |  | 
                 $ownerId
            ¶
        $ownerId
            ¶
    
        Content owner's id.
|  |  | 
                 $publicationDate
            ¶
        $publicationDate
            ¶
    
        Content publication date, as a UNIX timestamp.
|  |  | 
                 $remoteId
            ¶
        $remoteId
            ¶
    
        Remote identifier used as a custom identifier for the object.
|  |  | 
                 $sectionId
            ¶
        $sectionId
            ¶
    
        Section id the content is assigned to.
|  |  | 
                 $status
            ¶
        $status
            ¶
    
        Status of the content.
|  |  | 
Replaces deprecated ContentInfo::$isPublished.
Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        Construct object optionally with a set of 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> | [] | - | 
                 getProperties()
            ¶
getProperties()
            ¶
    
        Returns list of available properties' names.
|  |  | 
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>