Copied!

CreateStruct

CreateStruct.php : 12
Extends ValueObject

Base SPI Value object.

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

Properties

public $contentId

CreateStruct.php : 55

Content ID.

public int $contentId

ID of the corresponding Content.

public $contentVersion

CreateStruct.php : 66

Content version.

public int $contentVersion

Version of the corresponding Content.

public $hidden

CreateStruct.php : 29

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

public bool $hidden = false

public $invisible

CreateStruct.php : 37

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

public bool $invisible = false

public $mainLocationId

CreateStruct.php : 78

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 : 103

Parent location's Id.

public int $parentId

public $priority

CreateStruct.php : 22

Location priority.

public int $priority = 0

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

public $remoteId

CreateStruct.php : 46

Remote ID.

public mixed $remoteId

A universally unique identifier.

public $sortField

CreateStruct.php : 87

Specifies which property the child locations should be sorted on.

public mixed $sortField

Valid values are found at

public $sortOrder

CreateStruct.php : 96

Specifies whether the sort order should be ascending or descending.

public mixed $sortOrder

Valid values are

Methods

public__construct()

ValueObject.php : 32

Construct object optionally with a set of properties.

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

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

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

protectedgetProperties()

ValueObject.php : 53

Returns list of available properties' names.

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

Override to add dynamic properties.

Parameters

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

Additional dynamic properties exposed on the object

Return values

array<int, string>

Attributes
#[Ignore]