Copied!

LocationCreateStruct

LocationCreateStruct.php : 16
Extends ValueObject

This class is used to create a new Location for a content object.

Properties

public $hidden

LocationCreateStruct.php : 36

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

public bool $hidden = false

public $parentLocationId

LocationCreateStruct.php : 23

The id of the parent location under which the new location should be created.

public int $parentLocationId

Required.

public $priority

LocationCreateStruct.php : 31

Location priority.

public int $priority = 0

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

public $remoteId

LocationCreateStruct.php : 43

An universally unique string identifier.

public string|null $remoteId = null

Needs to be a unique Location->remoteId string value.

public $sortField

LocationCreateStruct.php : 52

Specifies which property the child locations should be sorted on.

public int|null $sortField = null

Valid values are found at

If not set, will be taken out of ContentType's default sort field

public $sortOrder

LocationCreateStruct.php : 61

Specifies whether the sort order should be ascending or descending.

public int|null $sortOrder = null

Valid values are

If not set, will be taken out of ContentType's default sort order

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]