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

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

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

Свойство Тип Описание
$innerContentType eZ\Publish\API\Repository\Values\ContentType\ContentType Holds internal content type object.

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

Метод Описание
__get ( string $property ) : mixed Magic getter for routing get calls to innerContentType.
__isset ( string $property ) : boolean Magic isset for routing isset calls to innerContentType.
__set ( string $property, mixed $propertyValue ) Magic set for routing set calls to innerContentType.
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.

Защищенные методы

Метод Описание
getProperties ( array $dynamicProperties = ['contentTypeGroups', 'fieldDefinitions'] ) : array Function where list of properties are returned.

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

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

Magic getter for routing get calls to innerContentType.
public __get ( string $property ) : mixed
$property string The name of the property to retrieve
Результат mixed

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

Magic isset for routing isset calls to innerContentType.
public __isset ( string $property ) : boolean
$property string
Результат boolean

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

Magic set for routing set calls to innerContentType.
public __set ( string $property, mixed $propertyValue )
$property string
$propertyValue mixed

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

getProperties() защищенный Метод

Override to add dynamic properties
protected getProperties ( array $dynamicProperties = ['contentTypeGroups', 'fieldDefinitions'] ) : array
$dynamicProperties array
Результат array

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

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

Holds internal content type object.
protected ContentType,eZ\Publish\API\Repository\Values\ContentType $innerContentType
Результат eZ\Publish\API\Repository\Values\ContentType\ContentType