Copied!

TrashItem

TrashItem.php : 14
Abstract
Extends Location

this class represents a trash item, which is actually a trashed location.

Constants

publicSORT_FIELD_CLASS_IDENTIFIER

Location.php : 41
public mixed SORT_FIELD_CLASS_IDENTIFIER = 6

publicSORT_FIELD_CLASS_NAME

Location.php : 42
public mixed SORT_FIELD_CLASS_NAME = 7

publicSORT_FIELD_CONTENTOBJECT_ID

Location.php : 52
public mixed SORT_FIELD_CONTENTOBJECT_ID = 12

publicSORT_FIELD_DEPTH

Location.php : 40
public mixed SORT_FIELD_DEPTH = 5

publicSORT_FIELD_MAP

Location.php : 66

Map for Location sort fields to their respective SortClauses.

public mixed SORT_FIELD_MAP = [
    self::SORT_FIELD_PATH => \Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause\Location\Path::class,
    self::SORT_FIELD_PUBLISHED => \Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause\DatePublished::class,
    self::SORT_FIELD_MODIFIED => \Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause\DateModified::class,
    self::SORT_FIELD_SECTION => \Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause\SectionIdentifier::class,
    self::SORT_FIELD_DEPTH => \Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause\Location\Depth::class,
    //self::SORT_FIELD_CLASS_IDENTIFIER => false,
    //self::SORT_FIELD_CLASS_NAME => false,
    self::SORT_FIELD_PRIORITY => \Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause\Location\Priority::class,
    self::SORT_FIELD_NAME => \Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause\ContentName::class,
    //self::SORT_FIELD_MODIFIED_SUBNODE => false,
    self::SORT_FIELD_NODE_ID => \Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause\Location\Id::class,
    self::SORT_FIELD_CONTENTOBJECT_ID => \Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause\ContentId::class,
]

Those not here (class name/identifier and modified subnode) are missing/deprecated and will most likely be removed in the future.

publicSORT_FIELD_MODIFIED

Location.php : 38
public mixed SORT_FIELD_MODIFIED = 3

publicSORT_FIELD_MODIFIED_SUBNODE

Location.php : 49
public mixed SORT_FIELD_MODIFIED_SUBNODE = 10
Tags
Deprecated

publicSORT_FIELD_NAME

Location.php : 44
public mixed SORT_FIELD_NAME = 9

publicSORT_FIELD_NODE_ID

Location.php : 51
public mixed SORT_FIELD_NODE_ID = 11

publicSORT_FIELD_PATH

Location.php : 36
public mixed SORT_FIELD_PATH = 1

publicSORT_FIELD_PRIORITY

Location.php : 43
public mixed SORT_FIELD_PRIORITY = 8

publicSORT_FIELD_PUBLISHED

Location.php : 37
public mixed SORT_FIELD_PUBLISHED = 2

publicSORT_FIELD_SECTION

Location.php : 39
public mixed SORT_FIELD_SECTION = 4

publicSORT_ORDER_ASC

Location.php : 55
public mixed SORT_ORDER_ASC = 1

publicSORT_ORDER_DESC

Location.php : 54
public mixed SORT_ORDER_DESC = 0

publicSORT_ORDER_MAP

Location.php : 84

Map for Location sort order to their respective Query SORT constants.

public mixed SORT_ORDER_MAP = [self::SORT_ORDER_DESC => \Ibexa\Contracts\Core\Repository\Values\Content\Query::SORT_DESC, self::SORT_ORDER_ASC => \Ibexa\Contracts\Core\Repository\Values\Content\Query::SORT_ASC]

publicSTATUS_DRAFT

Location.php : 57
public mixed STATUS_DRAFT = 0

publicSTATUS_PUBLISHED

Location.php : 58
public mixed STATUS_PUBLISHED = 1

Properties

public $contentId read-only

Location.php
public int $contentId

Accessing magic getter is deprecated since 4.6.7 and will be removed in 5.0.0. Use Location::getContentId() instead.

public $contentInfo read-only

Location.php
public ContentInfo $contentInfo

Calls Location::getContentInfo()

public $depth read-only

Location.php
public int $depth

Accessing magic getter is deprecated since 4.6.7 and will be removed in 5.0.0. Use Location::getDepth() instead.

protected $depth

Location.php : 174

Depth location has in the location tree.

protected int $depth

public $explicitlyHidden read-only

Location.php
public bool $explicitlyHidden

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

protected $explicitlyHidden

Location.php : 134

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

protected bool $explicitlyHidden

public $hidden read-only

Location.php
public bool $hidden

Accessing magic getter is deprecated since 4.6.7 and will be removed in 5.0.0. Use Location::isHidden() instead.

protected $hidden

Location.php : 119

Indicates that the Location entity is hidden (explicitly or hidden by content).

protected bool $hidden

public $id read-only

Location.php
public int $id

Accessing magic getter is deprecated since 4.6.7 and will be removed in 5.0.0. Use Location::getId() instead.

protected $id

Location.php : 92
protected int $id

public $invisible read-only

Location.php
public bool $invisible

Accessing magic getter is deprecated since 4.6.7 and will be removed in 5.0.0. Use Location::isInvisible() instead.

protected $invisible

Location.php : 127

Indicates that the Location is not visible, being either marked as hidden itself, or implicitly hidden by its Content or an ancestor Location.

protected bool $invisible

public $parentLocationId read-only

Location.php
public int $parentLocationId

The ID of the parent location

protected $parentLocationId

Location.php : 150

Parent ID.

protected int $parentLocationId

Location ID.

public $path read-only

Location.php
public array<string|int, mixed> $path

Accessing magic getter is deprecated since 4.6.7 and will be removed in 5.0.0. Use Location::getPath() instead.

protected $path

Location.php : 167

The list of ancestor locations' IDs, ordered by increasing depth, starting with '1', and ending with the current Location's ID.

protected array<int, string> $path

Same as Location::$pathString but as array, e.g.: ['1', '2', '4', '23'].

public $pathString read-only

Location.php
public string $pathString

Accessing magic getter is deprecated since 4.6.7 and will be removed in 5.0.0. Use Location::getPathString() instead.

protected $pathString

Location.php : 157

The materialized path of the location entry, eg: /1/2/4/23/.

protected string $pathString

public $priority read-only

Location.php
public int $priority

Position of the Location among its siblings when sorted using priority

protected $priority

Location.php : 112

Location priority.

protected int $priority

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

public $remoteId read-only

Location.php
public string $remoteId

A global unique ID of the content object

protected $remoteId

Location.php : 143

Remote ID.

protected string $remoteId

A universally unique identifier.

public $sortField read-only

Location.php
public int $sortField

Specifies which property the child locations should be sorted on. Valid values are found at

protected $sortField

Location.php : 183

Specifies which property the child locations should be sorted on.

protected int $sortField

Valid values are found at

public $sortOrder read-only

Location.php
public int $sortOrder

Specifies whether the sort order should be ascending or descending. Valid values are

protected $sortOrder

Location.php : 192

Specifies whether the sort order should be ascending or descending.

protected int $sortOrder

Valid values are

public $status

Location.php : 102

The status of the location.

public int $status = self::STATUS_PUBLISHED

A location gets the status Location::STATUS_DRAFT on newly created content which is not published. When content is published the location gets the status Location::STATUS_PUBLISHED.

protected $content

Location.php : 195
protected Content $content

protected $trashed

TrashItem.php : 21

Trashed timestamp.

protected DateTime $trashed

Methods

public__construct()

ValueObject.php : 31

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> [] -

public__get()

Location.php : 322
public __get(mixed $property) : mixed

Parameters

Name Type Default value Description
$property mixed - -
Tags
Deprecated
4.6.7

accessing magic getter is deprecated and will be removed in 5.0.0.

public__isset()

Location.php : 312
public __isset(mixed $property) : mixed

Parameters

Name Type Default value Description
$property mixed - -
Tags
Deprecated
4.6.7

accessing magic getter is deprecated and will be removed in 5.0.0.

publicgetContent()

Location.php : 234
public getContent() : Content

Return values

Content

publicgetContentId()

Location.php : 216
public getContentId() : int

Return values

int

publicgetContentInfo()

Location.php : 202

Returns the content info of the content object of this location.

public abstract getContentInfo() : ContentInfo

Return values

ContentInfo

publicgetDepth()

Location.php : 306
public getDepth() : int

Return values

int

publicgetId()

Location.php : 211
public getId() : int

Return values

int

publicgetParentLocation()

Location.php : 209

Return the parent location of this location.

public abstract getParentLocation() : Location|null

Return values

Location|null

publicgetPath()

Location.php : 278

The list of ancestor locations' IDs, ordered by increasing depth, starting with 1, and ending with the current Location's ID.

public getPath() : array<int, string>

Same as Location::getPathString() but as array, e.g.: ['1', '2', '4', '23'].

Return values

array<int, string>

publicgetPathString()

Location.php : 265

The path to the Location represented by the current instance, e.g. /1/2/4/23/ where 23 is current ID.

public getPathString() : string

Return values

string

publicgetSortClauses()

Location.php : 246

Get SortClause objects built from Locations' sort options.

public getSortClauses() : array<string|int, SortClause>

Return values

array<string|int, SortClause>

Tags
Throws
NotImplementedException

If sort field has a deprecated/unsupported value which does not have a Sort Clause.

publicisDraft()

Location.php : 226

Returns true if current location is a draft.

public isDraft() : bool

Return values

bool

publicisHidden()

Location.php : 301

Indicates that the Location is hidden either explicitly or by content.

public isHidden() : bool

Return values

bool

publicisInvisible()

Location.php : 293

Indicates that the Location is not visible, being either marked as hidden itself, or implicitly hidden by its Content or an ancestor Location.

public isInvisible() : bool

Return values

bool

protectedgetProperties()

ValueObject.php : 54

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>

Tags
Serializerignore

()