PHP Class eZ\Publish\Core\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
$contentInfo eZ\Publish\API\Repository\Values\Content\ContentInfo
$names array

Public Methods

Method Description
getContentInfo ( ) : eZ\Publish\API\Repository\Values\Content\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

getContentInfo() public method

Content of the content this version belongs to.
public getContentInfo ( ) : eZ\Publish\API\Repository\Values\Content\ContentInfo
return eZ\Publish\API\Repository\Values\Content\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

$contentInfo protected property

protected ContentInfo,eZ\Publish\API\Repository\Values\Content $contentInfo
return eZ\Publish\API\Repository\Values\Content\ContentInfo

$names protected property

protected array $names
return array