Copied!

Type

Type.php : 14
Extends ValueObject

SPI Persistence Content\Type value object.

Constants

publicSTATUS_DEFINED

Type.php : 17
public int STATUS_DEFINED = 0

Status constant for defined (aka "published") Type

publicSTATUS_DRAFT

Type.php : 20
public int STATUS_DRAFT = 1

Status constant for draft (aka "temporary") Type

publicSTATUS_MODIFIED

Type.php : 23
public int STATUS_MODIFIED = 2

Status constant for modified (aka "deferred for publishing") Type

Properties

public $created

Type.php : 75

Creation date (timestamp).

public int $created

public $creatorId

Type.php : 89

Creator user id.

public mixed $creatorId

public $defaultAlwaysAvailable

Type.php : 183

Defines if content objects should have always available enabled or not by default.

public bool $defaultAlwaysAvailable = false

Always available (when enabled) means main language is always available, and works as a editorial fallback language on load operations when translation filter is provided but no match is found.

public $description

Type.php : 61

Human readable description of the content type.

public array<string|int, string> $description = []

The structure of this field is: array( 'eng' => '<description_eng>', 'de' => '<description_de>' );

public $fieldDefinitions

Type.php : 173

Definitions for Content fields in this type.

public array<string|int, FieldDefinition$fieldDefinitions = []

public $groupIds

Type.php : 166

Contains an array of type group IDs.

public array<string|int, mixed> $groupIds = []

public $id

Type.php : 30

Primary key: Content type ID.

public mixed $id

public $identifier

Type.php : 68

String identifier of a type.

public string $identifier

public $initialLanguageId

Type.php : 141

Initial language.

public mixed $initialLanguageId

public $isContainer

Type.php : 134

Determines if the type is a container.

public bool $isContainer

public $languageCodes

Type.php : 190

Translations language codes.

public array<string|int, mixed> $languageCodes = []

public $modified

Type.php : 82

Modification date (timestamp).

public int $modified

public $modifierId

Type.php : 96

Modifier user id.

public mixed $modifierId

public $name

Type.php : 49

Human readable name of the content type.

public array<string|int, string> $name

The structure of this field is: array( 'eng' => '<name_eng>', 'de' => '<name_de>' );

public $nameSchema

Type.php : 127

Name schema.

public string $nameSchema

Can be composed of FieldDefinition identifier place holders. These place holders must comply this pattern : <field_definition_identifier>. An OR condition can be used : <field_def|other_field_def> In this example, field_def will be used if available. If not, other_field_def will be used for content name generation.

public $remoteId

Type.php : 103

Unique remote ID.

public string $remoteId

public $sortField

Type.php : 150

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

public mixed $sortField = \Ibexa\Contracts\Core\Persistence\Content\Location::SORT_FIELD_PUBLISHED

Valid values are found at

public $sortOrder

Type.php : 159

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

public mixed $sortOrder = \Ibexa\Contracts\Core\Persistence\Content\Location::SORT_ORDER_DESC

Valid values are

public $status

Type.php : 37

Primary key: Status (legacy: "version").

public int $status = self::STATUS_DRAFT

One of Type::STATUS_DEFINED|Type::STATUS_DRAFT|Type::STATUS_MODIFIED

public $urlAliasSchema

Type.php : 115

URL alias schema.

public string $urlAliasSchema

Same as Type::$nameSchema. If nothing is provided, $nameSchema will be used instead.

Tags
See
Type::$nameSchema

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

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>