Copied!

ContentTypeCreateStruct

ContentTypeCreateStruct.php : 19
Extends ValueObject

This class is used for creating content types.

Properties

public $creationDate

ContentTypeCreateStruct.php : 128

If set this value overrides the current time for creation.

public DateTime $creationDate = null

public $creatorId

ContentTypeCreateStruct.php : 121

If set this value overrides the current user as creator.

public mixed $creatorId = null

public $defaultAlwaysAvailable

ContentTypeCreateStruct.php : 91

If an instance of a content type is created the always available flag is set by default this this value.

public bool $defaultAlwaysAvailable = true

public $defaultSortField

ContentTypeCreateStruct.php : 74

Specifies which property the child locations should be sorted on by default when created.

public mixed $defaultSortField = \Ibexa\Contracts\Core\Repository\Values\Content\Location::SORT_FIELD_PUBLISHED

Valid values are found at

public $defaultSortOrder

ContentTypeCreateStruct.php : 83

Specifies whether the sort order should be ascending or descending by default when created.

public mixed $defaultSortOrder = \Ibexa\Contracts\Core\Repository\Values\Content\Location::SORT_ORDER_DESC

Valid values are

public $descriptions

ContentTypeCreateStruct.php : 107

An array of descriptions with languageCode keys.

public array<string|int, mixed> $descriptions

an array of string

public $fieldDefinitions

ContentTypeCreateStruct.php
public array<string|int, FieldDefinitionCreateStruct$fieldDefinitions

the collection of field definitions

public $identifier

ContentTypeCreateStruct.php : 28

String unique identifier of a type.

public string $identifier

Required.

public $isContainer

ContentTypeCreateStruct.php : 65

Determines if the type is a container.

public bool $isContainer = false

public $mainLanguageCode

ContentTypeCreateStruct.php : 37

Main language Code.

public string $mainLanguageCode

Required.

public $names

ContentTypeCreateStruct.php : 100

An array of names with languageCode keys.

public array<string|int, mixed> $names

Required. - at least one name in the main language is required

an array of string

public $nameSchema

ContentTypeCreateStruct.php : 58

Name schema.

public string $nameSchema

public $remoteId

ContentTypeCreateStruct.php : 44

The remote id.

public string $remoteId

public $urlAliasSchema

ContentTypeCreateStruct.php : 51

URL alias schema.

public string $urlAliasSchema

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

public __construct([array<string|int, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they are not writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string|int, mixed> [] -

publicaddFieldDefinition()

ContentTypeCreateStruct.php : 114

Adds a new field definition.

public abstract addFieldDefinition(FieldDefinitionCreateStruct $fieldDef) : void

Parameters

Name Type Default value Description
$fieldDef FieldDefinitionCreateStruct - -

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

protected getProperties([array<string|int, mixed> $dynamicProperties = [] ]) : array<string|int, mixed>

Used by attributes(), override to add dynamic properties

Parameters

Name Type Default value Description
$dynamicProperties array<string|int, mixed> []

Additional dynamic properties exposed on the object

Return values

array<string|int, mixed>