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

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

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

Свойство Тип Описание
$innerContentType eZ\Publish\API\Repository\Values\ContentType\ContentType ContentType encapsulated in the draft.

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

Метод Описание
__construct ( eZ\Publish\API\Repository\Values\ContentType\ContentType $innerContentType ) Creates a new draft with $innerContentType.
__get ( $propertyName )
__isset ( $propertyName )
__set ( $propertyName, $propertyValue )
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.
getFieldDefinitions ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] This method returns the content type field definitions from this type.
getInnerContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType Returns the inner content 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() публичный Метод

Creates a new draft with $innerContentType.
public __construct ( eZ\Publish\API\Repository\Values\ContentType\ContentType $innerContentType )
$innerContentType eZ\Publish\API\Repository\Values\ContentType\ContentType

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

public __get ( $propertyName )

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

public __isset ( $propertyName )

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

public __set ( $propertyName, $propertyValue )

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

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

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

ONLY FOR INTERNAL USE IN THE INTEGRATION TEST SUITE.
public getInnerContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
Результат eZ\Publish\API\Repository\Values\ContentType\ContentType

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

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

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

ContentType encapsulated in the draft.
protected ContentType,eZ\Publish\API\Repository\Values\ContentType $innerContentType
Результат eZ\Publish\API\Repository\Values\ContentType\ContentType