Class

eZ\Publish\Core\REST\Client\Values\ContentType\ContentType

class ContentType extends ContentType

this class represents a content type value.

Constants

STATUS_DEFINED

STATUS_DRAFT

STATUS_MODIFIED

Methods

ContentTypeGroup[] getContentTypeGroups()

This method returns the content type groups this content type is assigned to.

FieldDefinition[] getFieldDefinitions()

This method returns the content type field definitions from this type.

FieldDefinition getFieldDefinition(string $fieldDefinitionIdentifier)

This method returns the field definition for the given identifier.

__construct(ContentTypeService $contentTypeService, array $data = array())

mixed __get(string $property)

Magic getter for retrieving convenience properties.

bool __isset(string $property)

Magic isset for signaling existence of convenience properties.

Details

at line 86
public ContentTypeGroup[] getContentTypeGroups()

This method returns the content type groups this content type is assigned to.

Return Value

ContentTypeGroup[]

at line 100
public FieldDefinition[] getFieldDefinitions()

This method returns the content type field definitions from this type.

Return Value

FieldDefinition[]

at line 116
public FieldDefinition getFieldDefinition(string $fieldDefinitionIdentifier)

This method returns the field definition for the given identifier.

Parameters

string $fieldDefinitionIdentifier

Return Value

FieldDefinition

at line 75
public __construct(ContentTypeService $contentTypeService, array $data = array())

Parameters

ContentTypeService $contentTypeService
array $data

at line 135
public mixed __get(string $property)

Magic getter for retrieving convenience properties.

Parameters

string $property The name of the property to retrieve

Return Value

mixed

at line 152
public bool __isset(string $property)

Magic isset for signaling existence of convenience properties.

Parameters

string $property

Return Value

bool