This class provides all version independent information of the Content object.
Constants¶
                 STATUS_DRAFT        ¶
STATUS_DRAFT        ¶
    
        |  |  | 
                 STATUS_PUBLISHED        ¶
STATUS_PUBLISHED        ¶
    
        |  |  | 
                 STATUS_TRASHED        ¶
STATUS_TRASHED        ¶
    
        |  |  | 
Properties¶
                 $alwaysAvailable
            ¶
        $alwaysAvailable
            ¶
    
        Indicates if the Content object is shown in the mainlanguage if its not present in an other requested language.
|  |  | 
                 $contentType
            ¶
        $contentType
            ¶
    
        |  |  | 
                 $contentTypeId
            ¶
        $contentTypeId
            ¶
    
        The content type id of the Content object.
|  |  | 
                 $currentVersionNo
            ¶
        $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
            ¶
        $id
            ¶
    
        The unique id of the Content object.
|  |  | 
                 $isHidden
            ¶
        $isHidden
            ¶
    
        |  |  | 
                 $mainLanguage
            ¶
        $mainLanguage
            ¶
    
        |  |  | 
                 $mainLanguageCode
            ¶
        $mainLanguageCode
            ¶
    
        The main language code of the Content object.
|  |  | 
                 $mainLocation
            ¶
        $mainLocation
            ¶
    
        |  |  | 
                 $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.
|  |  | 
                 $name
            ¶
        $name
            ¶
    
        The computed name (via name schema) in the main language of the Content object.
|  |  | 
For names in other languages then main see VersionInfo
                 $owner
            ¶
        $owner
            ¶
    
        |  |  | 
                 $ownerId
            ¶
        $ownerId
            ¶
    
        The owner of the Content object.
|  |  | 
                 $published
            ¶
        $published
            ¶
    
        True if there exists a published version, false otherwise.
|  |  | 
Constant.
                 $publishedDate
            ¶
        $publishedDate
            ¶
    
        Content publication date.
|  |  | 
                 $remoteId
            ¶
        $remoteId
            ¶
    
        Remote identifier used as a custom identifier for the object.
|  |  | 
                 $section
            ¶
        $section
            ¶
    
        |  |  | 
                 $sectionId
            ¶
        $sectionId
            ¶
    
        The section to which the Content object is assigned.
|  |  | 
                 $status
            ¶
        $status
            ¶
    
        Status of the content.
|  |  | 
Replaces deprecated API\ContentInfo::$published.
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> | [] | - | 
                 getContentType()
            ¶
getContentType()
            ¶
    
        |  |  | 
Return values
                 getId()
            ¶
getId()
            ¶
    
        |  |  | 
Return values
int
                 getMainLanguage()
            ¶
getMainLanguage()
            ¶
    
        |  |  | 
Return values
                 getMainLanguageCode()
            ¶
getMainLanguageCode()
            ¶
    
        |  |  | 
Return values
string
                 getMainLocation()
            ¶
getMainLocation()
            ¶
    
        |  |  | 
Return values
Location|null
                 getMainLocationId()
            ¶
getMainLocationId()
            ¶
    
        |  |  | 
Return values
int|null
                 getName()
            ¶
getName()
            ¶
    
        |  |  | 
Return values
string
                 getOwner()
            ¶
getOwner()
            ¶
    
        |  |  | 
Return values
                 getSection()
            ¶
getSection()
            ¶
    
        |  |  | 
Return values
                 getSectionId()
            ¶
getSectionId()
            ¶
    
        |  |  | 
Return values
int
                 isDraft()
            ¶
isDraft()
            ¶
    
        |  |  | 
Return values
bool
                 isHidden()
            ¶
isHidden()
            ¶
    
        |  |  | 
Return values
bool
                 isPublished()
            ¶
isPublished()
            ¶
    
        |  |  | 
Return values
bool
                 isTrashed()
            ¶
isTrashed()
            ¶
    
        |  |  | 
Return values
bool
                 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>