PHP Class eZ\Publish\Core\REST\Client\Values\ContentType\ContentTypeDraft

Inheritance: extends eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft
Mostrar archivo Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$innerContentType eZ\Publish\API\Repository\Values\ContentType\ContentType ContentType encapsulated in the draft.

Public Methods

Method Description
__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.

Method Details

__construct() public method

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 method

public __get ( $propertyName )

__isset() public method

public __isset ( $propertyName )

__set() public method

public __set ( $propertyName, $propertyValue )

getContentTypeGroups() public method

This method returns the content type groups this content type is assigned to.
public getContentTypeGroups ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]
return eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[]

getDescription() public method

This method returns the name of the content type in the given language.
public getDescription ( string $languageCode ) : string
$languageCode string
return string the description for the given language or null if none exists.

getDescriptions() public method

The structure of this field is: array( 'eng' => '', 'de' => '' );
public getDescriptions ( ) : string[]
return string[]

getFieldDefinition() public method

This method returns the field definition for the given identifier.
public getFieldDefinition ( string $fieldDefinitionIdentifier ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
$fieldDefinitionIdentifier string
return eZ\Publish\API\Repository\Values\ContentType\FieldDefinition

getFieldDefinitions() public method

This method returns the content type field definitions from this type.
public getFieldDefinitions ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]
return eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]

getInnerContentType() public method

ONLY FOR INTERNAL USE IN THE INTEGRATION TEST SUITE.
public getInnerContentType ( ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
return eZ\Publish\API\Repository\Values\ContentType\ContentType

getName() public method

This method returns the name of the content type in the given language.
public getName ( string $languageCode ) : string
$languageCode string
return string the name for the given language or null if none exists.

getNames() public method

The structure of the return value is: array( 'eng' => '', 'de' => '' );
public getNames ( ) : string[]
return string[]

Property Details

$innerContentType protected_oe property

ContentType encapsulated in the draft.
protected ContentType,eZ\Publish\API\Repository\Values\ContentType $innerContentType
return eZ\Publish\API\Repository\Values\ContentType\ContentType