PHP Класс eZ\Publish\Core\Repository\Values\ContentType\ContentType

Наследование: extends eZ\Publish\API\Repository\Values\ContentType\ContentType
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$contentTypeGroups eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[] Holds the collection of contenttypegroups the contenttype is assigned to.
$descriptions string[] Holds the collection of descriptions with languageCode keys.
$fieldDefinitions eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] Contains the content type field definitions from this type.
$fieldDefinitionsById eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] Field definitions indexed by id.
$fieldDefinitionsByIdentifier eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] Field definitions indexed by identifier.
$names string[] Holds the collection of names with languageCode keys.

Открытые методы

Метод Описание
__construct ( array $data = [] )
getContentTypeGroups ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[] This method returns the content type groups this content type is assigned to.
getDescription ( string $languageCode ) : string This method returns the name of the content type in the given language.
getDescriptions ( ) : string[] This method returns the human readable description of the content type.
getFieldDefinition ( string $fieldDefinitionIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition This method returns the field definition for the given identifier.
getFieldDefinitionById ( mixed $fieldDefinitionId ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition This method returns the field definition for the given id.
getFieldDefinitions ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] This method returns the content type field definitions from this type.
getName ( string $languageCode ) : string This method returns the name of the content type in the given language.
getNames ( ) : string[] This method returns the human readable name in all provided languages of the content type.

Описание методов

__construct() публичный Метод

public __construct ( array $data = [] )
$data array

getContentTypeGroups() публичный Метод

This method returns the content type groups this content type is assigned to.
public getContentTypeGroups ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]
Результат eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]

getDescription() публичный Метод

This method returns the name of the content type in the given language.
public getDescription ( string $languageCode ) : string
$languageCode string
Результат string the description for the given language or null if none exists.

getDescriptions() публичный Метод

The structure of this field is: array( 'eng' => '', 'de' => '' );
public getDescriptions ( ) : string[]
Результат string[]

getFieldDefinition() публичный Метод

This method returns the field definition for the given identifier.
public getFieldDefinition ( string $fieldDefinitionIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$fieldDefinitionIdentifier string
Результат eZ\Publish\API\Repository\Values\ContentType\FieldDefinition

getFieldDefinitionById() публичный Метод

This method returns the field definition for the given id.
public getFieldDefinitionById ( mixed $fieldDefinitionId ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$fieldDefinitionId mixed
Результат eZ\Publish\API\Repository\Values\ContentType\FieldDefinition

getFieldDefinitions() публичный Метод

This method returns the content type field definitions from this type.
public getFieldDefinitions ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]
Результат eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]

getName() публичный Метод

This method returns the name of the content type in the given language.
public getName ( string $languageCode ) : string
$languageCode string
Результат string the name for the given language or null if none exists.

getNames() публичный Метод

The structure of the return value is: array( 'eng' => '', 'de' => '' );
public getNames ( ) : string[]
Результат string[]

Описание свойств

$contentTypeGroups защищенное свойство

Holds the collection of contenttypegroups the contenttype is assigned to.
protected ContentTypeGroup[],eZ\Publish\API\Repository\Values\ContentType $contentTypeGroups
Результат eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]

$descriptions защищенное свойство

Holds the collection of descriptions with languageCode keys.
protected string[] $descriptions
Результат string[]

$fieldDefinitions защищенное свойство

Contains the content type field definitions from this type.
protected FieldDefinition[],eZ\Publish\API\Repository\Values\ContentType $fieldDefinitions
Результат eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]

$fieldDefinitionsById защищенное свойство

Field definitions indexed by id.
protected FieldDefinition[],eZ\Publish\API\Repository\Values\ContentType $fieldDefinitionsById
Результат eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]

$fieldDefinitionsByIdentifier защищенное свойство

Field definitions indexed by identifier.
protected FieldDefinition[],eZ\Publish\API\Repository\Values\ContentType $fieldDefinitionsByIdentifier
Результат eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]

$names защищенное свойство

Holds the collection of names with languageCode keys.
protected string[] $names
Результат string[]