this class represents a trash item, which is actually a trashed location.
Constants¶
SORT_FIELD_CLASS_IDENTIFIER ¶
|
|
SORT_FIELD_CLASS_NAME ¶
|
|
SORT_FIELD_CONTENTOBJECT_ID ¶
|
|
SORT_FIELD_DEPTH ¶
|
|
SORT_FIELD_MAP ¶
Map for Location sort fields to their respective SortClauses.
|
|
Those not here (class name/identifier and modified subnode) are missing/deprecated and will most likely be removed in the future.
SORT_FIELD_MODIFIED ¶
|
|
SORT_FIELD_MODIFIED_SUBNODE ¶
|
|
Tags
SORT_FIELD_NAME ¶
|
|
SORT_FIELD_NODE_ID ¶
|
|
SORT_FIELD_PATH ¶
|
|
SORT_FIELD_PRIORITY ¶
|
|
SORT_FIELD_PUBLISHED ¶
|
|
SORT_FIELD_SECTION ¶
|
|
SORT_ORDER_ASC ¶
|
|
SORT_ORDER_DESC ¶
|
|
SORT_ORDER_MAP ¶
Map for Location sort order to their respective Query SORT constants.
|
|
STATUS_DRAFT ¶
|
|
STATUS_PUBLISHED ¶
|
|
Properties¶
$contentId
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::getContentId() instead.
$contentInfo
¶
|
|
calls getContentInfo()
$depth
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::getDepth() instead.
$depth
¶
Depth location has in the location tree.
|
|
$explicitlyHidden
¶
|
|
Indicates that the Location entity has been explicitly marked as hidden.
$explicitlyHidden
¶
Indicates that the Location entity has been explicitly marked as hidden.
|
|
$hidden
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::isHidden() instead.
$hidden
¶
Indicates that the Location entity is hidden (explicitly or hidden by content).
|
|
$id
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::getId() instead.
$id
¶
Location ID.
|
|
Location ID.
$invisible
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::isInvisible() instead.
$invisible
¶
Indicates that the Location is not visible, being either marked as hidden itself, or implicitly hidden by its Content or an ancestor Location.
|
|
$parentLocationId
¶
|
|
the id of the parent location
$parentLocationId
¶
Parent ID.
|
|
Location ID.
$path
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::getPath() instead.
$path
¶
Same as {@see Location::$pathString} but as array, e.g.: <code>[ '1', '2', '4', '23' ]</code>.
|
|
$pathString
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use Location::getPathString() instead.
$pathString
¶
The materialized path of the location entry, eg: /1/2/.
|
|
$priority
¶
|
|
Position of the Location among its siblings when sorted using priority
$priority
¶
Location priority.
|
|
Position of the Location among its siblings when sorted using priority sort order.
$remoteId
¶
|
|
a global unique id of the content object
$remoteId
¶
Remote ID.
|
|
A universally unique identifier.
$sortField
¶
|
|
Specifies which property the child locations should be sorted on. Valid values are found at
$sortField
¶
Specifies which property the child locations should be sorted on.
|
|
$sortOrder
¶
|
|
Specifies whether the sort order should be ascending or descending. Valid values are
$sortOrder
¶
Specifies whether the sort order should be ascending or descending.
|
|
$status
¶
the status of the location.
|
|
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
$content
¶
|
|
$trashed
¶
Trashed timestamp.
|
|
Methods¶
__construct()
¶
Construct object optionally with a set of 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> | [] | - |
__get()
¶
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$property | mixed | - | - |
__isset()
¶
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$property | mixed | - | - |
getContent()
¶
|
|
Return values
getContentId()
¶
|
|
Return values
int
getContentInfo()
¶
Returns the content info of the content object of this location.
|
|
Return values
getDepth()
¶
|
|
Return values
int
getId()
¶
|
|
Return values
int
getParentLocation()
¶
Return the parent location of this location.
|
|
Return values
Location|null
getPath()
¶
Same as {@see Location::getPathString()} but as array, e.g.: <code>[ '1', '2', '4', '23' ]</code>.
|
|
Return values
array<string|int, string>
getPathString()
¶
The path to the Location represented by the current instance, e.g. /1/2/4/23 where 23 is current id.
|
|
Return values
string
getSortClauses()
¶
Get SortClause objects built from Locations' sort options.
|
|
Return values
array<string|int, SortClause>
Tags
isDraft()
¶
Returns true if current location is a draft.
|
|
Return values
bool
isHidden()
¶
Indicates that the Location is hidden either explicitly or by content.
|
|
Return values
bool
isInvisible()
¶
Indicates that the Location is not visible, being either marked as hidden itself, or implicitly hidden by its Content or an ancestor Location.
|
|
Return values
bool
getProperties()
¶
Function where list of properties are returned.
|
|
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>