eZPublishCommunityProject  2013.6
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft Class Reference

This class represents a draft of a content type. More...

+ Inheritance diagram for eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft:
+ Collaboration diagram for eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft:

Public Member Functions

 __get ($property)
 Magic getter for routing get calls to innerContentType. More...
 
 __isset ($property)
 Magic isset for routing isset calls to innerContentType. More...
 
 __set ($property, $propertyValue)
 Magic set for routing set calls to innerContentType. More...
 
 getContentTypeGroups ()
 This method returns the content type groups this content type is assigned to. More...
 
 getDescription ($languageCode)
 This method returns the name of the content type in the given language. More...
 
 getDescriptions ()
 This method returns the human readable description of the content type. More...
 
 getFieldDefinition ($fieldDefinitionIdentifier)
 This method returns the field definition for the given identifier. More...
 
 getFieldDefinitionById ($fieldDefinitionId)
 This method returns the field definition for the given id. More...
 
 getFieldDefinitions ()
 This method returns the content type field definitions from this type. More...
 
 getName ($languageCode)
 This method returns the name of the content type in the given language. More...
 
 getNames ()
 This method returns the human readable name in all provided languages of the content type. More...
 
- Public Member Functions inherited from eZ\Publish\API\Repository\Values\ContentType\ContentType
 getContentTypeGroups ()
 This method returns the content type groups this content type is assigned to. More...
 
 getDescription ($languageCode)
 This method returns the name of the content type in the given language. More...
 
 getDescriptions ()
 This method returns the human readable description of the content type. More...
 
 getFieldDefinition ($fieldDefinitionIdentifier)
 This method returns the field definition for the given identifier. More...
 
 getFieldDefinitions ()
 This method returns the content type field definitions from this type. More...
 
 getName ($languageCode)
 This method returns the name of the content type in the given language. More...
 
 getNames ()
 This method returns the human readable name in all provided languages of the content type. 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 Member Functions

 getProperties ($dynamicProperties=array( 'contentTypeGroups', 'fieldDefinitions'))
 Function where list of properties are returned. More...
 
- Protected Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
 getProperties ($dynamicProperties=array())
 Function where list of properties are returned. More...
 

Protected Attributes

 $innerContentType
 
- Protected Attributes inherited from eZ\Publish\API\Repository\Values\ContentType\ContentType
 $creationDate
 
 $creatorId
 
 $defaultAlwaysAvailable = true
 
 $defaultSortField
 
 $defaultSortOrder
 
 $id
 
 $identifier
 
 $isContainer
 
 $mainLanguageCode
 
 $modificationDate
 
 $modifierId
 
 $nameSchema
 
 $remoteId
 
 $status
 
 $urlAliasSchema
 

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\ContentType\ContentType
const STATUS_DEFINED = 0
 
const STATUS_DRAFT = 1
 
const STATUS_MODIFIED = 2
 

Detailed Description

This class represents a draft of a content type.

Member Function Documentation

eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::__get (   $property)

Magic getter for routing get calls to innerContentType.

Parameters
string$propertyThe name of the property to retrieve
Returns
mixed
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::__isset (   $property)

Magic isset for routing isset calls to innerContentType.

Parameters
string$property
Returns
boolean
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::__set (   $property,
  $propertyValue 
)

Magic set for routing set calls to innerContentType.

Parameters
string$property
mixed$propertyValue
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::getContentTypeGroups ( )

This method returns the content type groups this content type is assigned to.

Returns
[]
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::getDescription (   $languageCode)

This method returns the name of the content type in the given language.

Parameters
string$languageCode
Returns
string the description for the given language or null if none exists.
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::getDescriptions ( )

This method returns the human readable description of the content type.

The structure of this field is: array( 'eng' => '<description_eng>', 'de' => '<description_de>' );

Returns
string[]
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::getFieldDefinition (   $fieldDefinitionIdentifier)

This method returns the field definition for the given identifier.

Parameters
string$fieldDefinitionIdentifier
Returns
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::getFieldDefinitionById (   $fieldDefinitionId)

This method returns the field definition for the given id.

Parameters
mixed$fieldDefinitionId
Returns
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::getFieldDefinitions ( )

This method returns the content type field definitions from this type.

Returns
[]
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::getName (   $languageCode)

This method returns the name of the content type in the given language.

Parameters
string$languageCode
Returns
string the name for the given language or null if none exists.
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::getNames ( )

This method returns the human readable name in all provided languages of the content type.

The structure of the return value is: array( 'eng' => '<name_eng>', 'de' => '<name_de>' );

Returns
string[]
eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::getProperties (   $dynamicProperties = array( 'contentTypeGroups', 'fieldDefinitions' ))
protected

Function where list of properties are returned.

Override to add dynamic properties parent::getProperties()

Parameters
array$dynamicProperties
Returns
array

Member Data Documentation

eZ\Publish\Core\Repository\Values\ContentType\ContentTypeDraft::$innerContentType
protected

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