PHP Класс eZ\Publish\Core\REST\Client\Values\ContentType\ContentType

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

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

Свойство Тип Описание
$contentTypeGroupListReference string Contains the URL for the list of ContentTypeGroups for the ContentType.
$contentTypeService eZ\Publish\Core\REST\Client\ContentTypeService Content type service to fetch additional information from.
$descriptions string[] Contains the human readable description of the content type.
$fieldDefinitionListReference string Carries the URL for the list of FieldDefinitions for the type.
$names string[] Contains the human readable name in all provided languages of the content type.

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

Метод Описание
__construct ( ContentTypeService $contentTypeService, array $data = [] )
__get ( string $property ) : mixed Magic getter for retrieving convenience properties.
__isset ( string $property ) : boolean Magic isset for signaling existence of convenience properties.
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 ) : FieldDefinition This method returns the field definition for the given identifier.
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 ( ContentTypeService $contentTypeService, array $data = [] )
$contentTypeService eZ\Publish\Core\REST\Client\ContentTypeService
$data array

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

Magic getter for retrieving convenience properties.
public __get ( string $property ) : mixed
$property string The name of the property to retrieve
Результат mixed

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

Magic isset for signaling existence of convenience properties.
public __isset ( string $property ) : boolean
$property string
Результат boolean

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 ) : FieldDefinition
$fieldDefinitionIdentifier string
Результат 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[]

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

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

Contains the URL for the list of ContentTypeGroups for the ContentType.
protected string $contentTypeGroupListReference
Результат string

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

Content type service to fetch additional information from.
protected ContentTypeService,eZ\Publish\Core\REST\Client $contentTypeService
Результат eZ\Publish\Core\REST\Client\ContentTypeService

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

Contains the human readable description of the content type.
protected string[] $descriptions
Результат string[]

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

Carries the URL for the list of FieldDefinitions for the type.
protected string $fieldDefinitionListReference
Результат string

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

Contains the human readable name in all provided languages of the content type.
protected string[] $names
Результат string[]