eZPublishCommunityProject  2012.12
eZ\Publish\API\Repository\Values\ContentType\ContentType Class Reference
+ Inheritance diagram for eZ\Publish\API\Repository\Values\ContentType\ContentType:
+ Collaboration diagram for eZ\Publish\API\Repository\Values\ContentType\ContentType:

Public Member Functions

 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...
 

Public Attributes

const STATUS_DEFINED = 0
 
const STATUS_DRAFT = 1
 
const STATUS_MODIFIED = 2
 

Protected Attributes

 $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...
 
- 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\ContentType\ContentType::getContentTypeGroups ( )
abstract

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

Returns
[]
eZ\Publish\API\Repository\Values\ContentType\ContentType::getDescription (   $languageCode)
abstract

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\API\Repository\Values\ContentType\ContentType::getDescriptions ( )
abstract

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\API\Repository\Values\ContentType\ContentType::getFieldDefinition (   $fieldDefinitionIdentifier)
abstract

This method returns the field definition for the given identifier.

Parameters
string$fieldDefinitionIdentifier
Returns

Referenced by eZ\Publish\Core\Repository\NameSchemaService\getFieldTitles(), and eZ\Publish\Core\REST\Common\Output\FieldTypeSerializer\serializeFieldValue().

eZ\Publish\API\Repository\Values\ContentType\ContentType::getFieldDefinitions ( )
abstract

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

Returns
[]
eZ\Publish\API\Repository\Values\ContentType\ContentType::getName (   $languageCode)
abstract

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\API\Repository\Values\ContentType\ContentType::getNames ( )
abstract

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[]

Member Data Documentation

eZ\Publish\API\Repository\Values\ContentType\ContentType::$creationDate
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$creatorId
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$defaultAlwaysAvailable = true
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$defaultSortField
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$defaultSortOrder
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$id
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$identifier
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$isContainer
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$mainLanguageCode
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$modificationDate
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$modifierId
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$nameSchema
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$remoteId
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$status
protected
eZ\Publish\API\Repository\Values\ContentType\ContentType::$urlAliasSchema
protected
const eZ\Publish\API\Repository\Values\ContentType\ContentType::STATUS_DEFINED = 0
const eZ\Publish\API\Repository\Values\ContentType\ContentType::STATUS_DRAFT = 1
read int $status the status of the content type One of STATUS_DEFINED STATUS_DRAFT eZ::Publish::Core::REST::Client::Values::ContentType::ContentType::ContentType::STATUS_MODIFIED = 2

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