eZPublishCommunityProject  2013.5
eZ\Publish\API\Repository\Values\Content\Content Class Reference
+ Inheritance diagram for eZ\Publish\API\Repository\Values\Content\Content:
+ Collaboration diagram for eZ\Publish\API\Repository\Values\Content\Content:

Public Member Functions

 getFields ()
 This method returns the complete fields collection. More...
 
 getFieldsByLanguage ($languageCode=null)
 This method returns the fields for a given language and non translatable fields. More...
 
 getFieldValue ($fieldDefIdentifier, $languageCode=null)
 Returns a field value for the given value $version->fields[$fieldDefId][$languageCode] is an equivalent call if no language is given on a translatable field this method returns the value of the initial language of the version if present, otherwise null. More...
 
 getVersionInfo ()
 Returns the VersionInfo for this version. 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...
 

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...
 
- Protected Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
 getProperties ($dynamicProperties=array())
 Function where list of properties are returned. More...
 

Member Function Documentation

eZ\Publish\API\Repository\Values\Content\Content::getFields ( )
abstract

This method returns the complete fields collection.

Returns
[] An array of Field
eZ\Publish\API\Repository\Values\Content\Content::getFieldsByLanguage (   $languageCode = null)
abstract

This method returns the fields for a given language and non translatable fields.

If note set the initialLanguage of the content version is used.

Parameters
string$languageCode
Returns
[] An array of Field with field identifier as keys
eZ\Publish\API\Repository\Values\Content\Content::getFieldValue (   $fieldDefIdentifier,
  $languageCode = null 
)
abstract

Returns a field value for the given value $version->fields[$fieldDefId][$languageCode] is an equivalent call if no language is given on a translatable field this method returns the value of the initial language of the version if present, otherwise null.

On non translatable fields this method ignores the languageCode parameter.

Parameters
string$fieldDefIdentifier
string$languageCode
Returns
mixed a primitive type or a field type Value object depending on the field type.
eZ\Publish\API\Repository\Values\Content\Content::getVersionInfo ( )
abstract

Returns the VersionInfo for this version.

Returns

Referenced by eZ\Publish\Core\MVC\Symfony\View\Manager\renderContent().


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