API Docs for: 1.0.0
Show:

eZ.ContentInfoBase Class

Extension providing ContentInfo attributes and methods for Models needing them.

Methods

_sortVersions

(
  • versions
)
Object protected

Sorts an array of version info by status

Parameters:

  • versions Array

    of eZ.VersionInfo

Returns:

Object:

of sorted versions by status: struct.<status_name>: {Array} of eZ.VersionInfo

loadVersions

(
  • options
  • callback
)

Loads content's version list

Parameters:

  • options Object
    • api Object

      (required) the JS REST client instance

  • callback Function

loadVersionsSortedByStatus

(
  • options
  • callback
)

Loads content's version list sorted by status

Parameters:

  • options Object
    • api Object

      (required) the JS REST client instance

  • callback Function

Attributes

alwaysAvailable

Boolean

The always available flag of the content

Default: false

contentId

String

The content id of the content in the eZ Publish repository

Default: ''

currentVersionNo

Number

The current version number

Default: 0

lastModificationDate

Date

The last modification date of the content

Default: epoch

mainLanguageCode

String

The main language code of the content (eng-GB, fre-FR, ...)

Default: ''

name

String

The name of the content

Default: ''

publishedDate

Date

The published date of the content

Default: epoch

remoteId

String

The remote id of the content in the eZ Publish repository

Default: ''