eZPublishCommunityProject  2012.12
eZ\Publish\Core\REST\Client\Values\Content\VersionInfo Class Reference
+ Inheritance diagram for eZ\Publish\Core\REST\Client\Values\Content\VersionInfo:
+ Collaboration diagram for eZ\Publish\Core\REST\Client\Values\Content\VersionInfo:

Public Member Functions

 __construct (ContentService $contentService, array $data=array())
 
 __get ($propertyName)
 
 __isset ($propertyName)
 
 getContentInfo ()
 Content of the content this version belongs to. More...
 
 getName ($languageCode=null)
 Returns the name computed from the name schema in the given language. More...
 
 getNames ()
 Returns the names computed from the name schema in the available languages. More...
 
- Public Member Functions inherited from eZ\Publish\API\Repository\Values\Content\VersionInfo
 getContentInfo ()
 Content of the content this version belongs to. More...
 
 getName ($languageCode=null)
 Returns the name computed from the name schema in the given language. More...
 
 getNames ()
 Returns the names computed from the name schema in the available languages. More...
 
- Public Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
 __construct (array $properties=array())
 Construct object optionally with a set of properties. More...
 
 __get ($property)
 Magic get function handling read to non public properties. More...
 
 __isset ($property)
 Magic isset function handling isset() to non public properties. More...
 
 __set ($property, $value)
 Magic set function handling writes to non public properties. More...
 
 __unset ($property)
 Magic unset function handling unset() to non public properties. More...
 
 attribute ($property)
 Internal function for Legacy template engine compatibility to get property value. More...
 
 attributes ()
 Internal function for Legacy template engine compatibility to get properties. More...
 
 hasAttribute ($property)
 Internal function for Legacy template engine compatibility to check existence of property. More...
 

Protected Attributes

 $contentInfoId
 
 $contentService
 
 $names
 
- Protected Attributes inherited from eZ\Publish\API\Repository\Values\Content\VersionInfo
 $creationDate
 
 $creatorId
 
 $id
 
 $initialLanguageCode
 
 $languageCodes = array()
 
 $modificationDate
 
 $status
 
 $versionNo
 

Additional Inherited Members

- Static Public Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
static __set_state (array $array)
 Returns a new instance of this class with the data specified by $array. More...
 
- Public Attributes inherited from eZ\Publish\API\Repository\Values\Content\VersionInfo
const STATUS_ARCHIVED = 2
 
const STATUS_DRAFT = 0
 
const STATUS_PUBLISHED = 1
 
- Protected Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
 getProperties ($dynamicProperties=array())
 Function where list of properties are returned. More...
 

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Client\Values\Content\VersionInfo::__construct ( ContentService  $contentService,
array  $data = array() 
)

Member Function Documentation

eZ\Publish\Core\REST\Client\Values\Content\VersionInfo::__get (   $propertyName)
eZ\Publish\Core\REST\Client\Values\Content\VersionInfo::__isset (   $propertyName)
eZ\Publish\Core\REST\Client\Values\Content\VersionInfo::getContentInfo ( )

Content of the content this version belongs to.

Returns
ContentInfo

Referenced by eZ\Publish\Core\REST\Client\Values\Content\VersionInfo\__get().

eZ\Publish\Core\REST\Client\Values\Content\VersionInfo::getName (   $languageCode = null)

Returns the name computed from the name schema in the given language.

If no language is given the name in initial language of the version if present, otherwise null.

Parameters
string$languageCode
Returns
string
eZ\Publish\Core\REST\Client\Values\Content\VersionInfo::getNames ( )

Returns the names computed from the name schema in the available languages.

Returns
string[]

Member Data Documentation

eZ\Publish\Core\REST\Client\Values\Content\VersionInfo::$contentInfoId
protected
eZ\Publish\Core\REST\Client\Values\Content\VersionInfo::$contentService
protected
eZ\Publish\Core\REST\Client\Values\Content\VersionInfo::$names
protected

The documentation for this class was generated from the following file: