SPI Persistence Content\Type value object.
Constants¶
STATUS_DEFINED ¶
|
|
Status constant for defined (aka "published") Type
STATUS_DRAFT ¶
|
|
Status constant for draft (aka "temporary") Type
STATUS_MODIFIED ¶
|
|
Status constant for modified (aka "deferred for publishing") Type
Properties¶
$created¶
Creation date (timestamp).
|
|
$creatorId¶
Creator user id.
|
|
$defaultAlwaysAvailable¶
Defines if content objects should have always available enabled or not by default.
|
|
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.
$description¶
Human readable description of the content type.
|
|
The structure of this field is:
array( 'eng' => '<description_eng>', 'de' => '<description_de>' );
$fieldDefinitions¶
Definitions for Content fields in this type.
|
|
$groupIds¶
Contains an array of type group IDs.
|
|
$id¶
Primary key: Content type ID.
|
|
$identifier¶
String identifier of a type.
|
|
$initialLanguageId¶
Initial language.
|
|
$isContainer¶
Determines if the type is a container.
|
|
$languageCodes¶
Translations language codes.
|
|
$modified¶
Modification date (timestamp).
|
|
$modifierId¶
Modifier user id.
|
|
$name¶
Human readable name of the content type.
|
|
The structure of this field is:
array( 'eng' => '<name_eng>', 'de' => '<name_de>' );
$nameSchema¶
Name schema.
|
|
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.
$remoteId¶
Unique remote ID.
|
|
$sortField¶
Specifies which property the child locations should be sorted on by default when created.
|
|
$sortOrder¶
Specifies whether the sort order should be ascending or descending by default when created.
|
|
$status¶
Primary key: Status (legacy: "version").
|
|
One of Type::STATUS_DEFINED|Type::STATUS_DRAFT|Type::STATUS_MODIFIED
$urlAliasSchema¶
URL alias schema.
|
|
Same as Type::$nameSchema. If nothing is provided, $nameSchema will be used instead.
Tags
Methods¶
__construct() ¶
Construct object optionally with a set of 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> | [] | - |
getProperties() ¶
Function where list of properties are returned.
|
|
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>