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

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

public bool $hidden = false

public $parentLocationId

LocationCreateStruct.php : 73

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

public mixed $parentLocationId

Required.

public $priority

LocationCreateStruct.php : 26

Location priority.

public int $priority = 0

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

public $remoteId

LocationCreateStruct.php : 42

An universally unique string identifier.

public mixed $remoteId

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

public $sortField

LocationCreateStruct.php : 53

Specifies which property the child locations should be sorted on.

public mixed $sortField = null

Valid values are found at

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

public $sortOrder

LocationCreateStruct.php : 64

Specifies whether the sort order should be ascending or descending.

public mixed $sortOrder = null

Valid values are

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

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>