PHP Class eZ\Publish\Core\REST\Client\Values\Content\VersionInfo

See also: eZ\Publish\API\Repository\Values\Content\VersionInfo
Inheritance: extends eZ\Publish\API\Repository\Values\Content\VersionInfo
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$contentInfoId string
$contentService eZ\Publish\Core\REST\Client\ContentService
$names string[]

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\ContentService $contentService, array $data = [] )
__get ( $propertyName )
__isset ( $propertyName )
getContentInfo ( ) : ContentInfo Content of the content this version belongs to.
getName ( string $languageCode = null ) : string Returns the name computed from the name schema in the given language.
getNames ( ) : string[] Returns the names computed from the name schema in the available languages.

Method Details

__construct() public method

public __construct ( eZ\Publish\API\Repository\ContentService $contentService, array $data = [] )
$contentService eZ\Publish\API\Repository\ContentService
$data array

__get() public method

public __get ( $propertyName )

__isset() public method

public __isset ( $propertyName )

getContentInfo() public method

Content of the content this version belongs to.
public getContentInfo ( ) : ContentInfo
return ContentInfo

getName() public method

If no language is given the name in initial language of the version if present, otherwise null.
public getName ( string $languageCode = null ) : string
$languageCode string
return string

getNames() public method

Returns the names computed from the name schema in the available languages.
public getNames ( ) : string[]
return string[]

Property Details

$contentInfoId protected property

protected string $contentInfoId
return string

$contentService protected property

protected ContentService,eZ\Publish\Core\REST\Client $contentService
return eZ\Publish\Core\REST\Client\ContentService

$names protected property

protected string[] $names
return string[]