this class represents a trash item, which is actually a trashed location.
Constants
|
public mixed SORT_FIELD_CLASS_IDENTIFIER = 6
|
|
public mixed SORT_FIELD_CLASS_NAME = 7
|
|
public mixed SORT_FIELD_CONTENTOBJECT_ID = 12
|
|
public mixed SORT_FIELD_DEPTH = 5
|
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.
|
public mixed SORT_FIELD_MODIFIED = 3
|
|
public mixed SORT_FIELD_MODIFIED_SUBNODE = 10
|
Tags
-
Deprecated
-
|
public mixed SORT_FIELD_NAME = 9
|
|
public mixed SORT_FIELD_NODE_ID = 11
|
|
public mixed SORT_FIELD_PATH = 1
|
|
public mixed SORT_FIELD_PRIORITY = 8
|
|
public mixed SORT_FIELD_PUBLISHED = 2
|
|
public mixed SORT_FIELD_SECTION = 4
|
|
public mixed SORT_ORDER_ASC = 1
|
|
public mixed SORT_ORDER_DESC = 0
|
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]
|
|
public mixed STATUS_DRAFT = 0
|
|
public mixed STATUS_PUBLISHED = 1
|
Properties
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::getContentId() instead.
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::getDepth() instead.
|
public bool $explicitlyHidden
|
Indicates that the Location entity has been explicitly marked as hidden.
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::isHidden() instead.
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::getId() instead.
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::isInvisible() instead.
|
public int $parentLocationId
|
the id of the parent location
|
public array<string|int, mixed> $path
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::getPath() instead.
|
public string $pathString
|
Position of the Location among its siblings when sorted using priority
a global unique id of the content object
Specifies which property the child locations should be sorted on. Valid values are found at
Specifies whether the sort order should be ascending or descending. Valid values are
the status of the location.
|
public int $status = self::STATUS_PUBLISHED
|
a location gets the status DRAFT on newly created content which is not published. When content is published the
location gets the status STATUS_PUBLISHED
Depth location has in the location tree.
Indicates that the Location entity has been explicitly marked as hidden.
|
protected bool $explicitlyHidden
|
Indicates that the Location entity is hidden (explicitly or hidden by content).
Location ID.
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
|
Parent ID.
|
protected int $parentLocationId
|
Same as {@see Location::$pathString} but as array, e.g.: <code>[ '1', '2', '4', '23' ]</code>.
|
protected array<string|int, string> $path
|
The materialized path of the location entry, eg: /1/2/.
|
protected string $pathString
|
Location priority.
Position of the Location among its siblings when sorted using priority
sort order.
Remote ID.
|
protected string $remoteId
|
A universally unique identifier.
Specifies which property the child locations should be sorted on.
Valid values are found at
Specifies whether the sort order should be ascending or descending.
Trashed timestamp.
|
protected DateTime $trashed
|
Methods
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>
|
[]
|
-
|
|
public __get(mixed $property) : mixed
|
Parameters
Name |
Type |
Default value |
Description |
$property
|
mixed
|
-
|
-
|
|
public __isset(mixed $property) : mixed
|
Parameters
Name |
Type |
Default value |
Description |
$property
|
mixed
|
-
|
-
|
Return values
Content
|
public getContentId() : int
|
Return values
int
Returns the content info of the content object of this location.
Return values
ContentInfo
Return values
int
Return values
int
Return the parent location of this location.
|
public abstract getParentLocation() : Location|null
|
Return values
Location|null
Same as {@see Location::getPathString()} but as array, e.g.: <code>[ '1', '2', '4', '23' ]</code>.
|
public getPath() : array<string|int, string>
|
Return values
array<string|int, string>
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
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.
Returns true if current location is a draft.
Return values
bool
Indicates that the Location is hidden either explicitly or by content.
Return values
bool
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
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>