Copied!

CreateStruct

CreateStruct.php : 11
Extends ValueObject

Base SPI Value object.

All properties of SPI\ValueObject must be serializable for cache & NoSQL use.

Properties

public $contentId

CreateStruct.php : 54

Content ID.

public int $contentId

ID of the corresponding Content.

public $contentVersion

CreateStruct.php : 65

Content version.

public int $contentVersion

Version of the corresponding Content.

public $hidden

CreateStruct.php : 28

Indicates that the Location entity has been explicitly marked as hidden.

public bool $hidden = false

public $invisible

CreateStruct.php : 36

Indicates that the Location is implicitly marked as hidden by a parent location.

public bool $invisible = false

public $mainLocationId

CreateStruct.php : 88

Identifier of the main location.

public mixed|true $mainLocationId = true

If the content object in this location has multiple locations, $mainLocationId will point to the main one. This is allowed to be set to true, this will mean this should become main location (@todo Find a better way to deal with being able to create the main location)

public $parentId

CreateStruct.php : 113

Parent location's Id.

public int $parentId

public $pathIdentificationString

CreateStruct.php : 76

Legacy format of the url alias.

public string $pathIdentificationString

This field might be removed in a later version.

Tags
Deprecated

Since 5.4, planned to be removed in 6.0

public $priority

CreateStruct.php : 21

Location priority.

public int $priority = 0

Position of the Location among its siblings when sorted using priority sort order.

public $remoteId

CreateStruct.php : 45

Remote ID.

public mixed $remoteId

A universally unique identifier.

public $sortField

CreateStruct.php : 97

Specifies which property the child locations should be sorted on.

public mixed $sortField

Valid values are found at

public $sortOrder

CreateStruct.php : 106

Specifies whether the sort order should be ascending or descending.

public mixed $sortOrder

Valid values are

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>