Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Core/REST/Client/Values/Content/TrashItem.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Client\Values\Content;
8
9 use eZ\Publish\API\Repository\Values\Content\TrashItem as APITrashItem;
10
17 class TrashItem extends APITrashItem
18 {
20 protected $location;
21
27 public function getContentInfo()
28 {
29 return $this->location->getContentInfo();
30 }
31
32 public function __get($property)
33 {
34 switch ($property) {
35 case 'id':
36 return $this->getContentInfo()->id;
37 }
38
39 return parent::__get($property);
40 }
41 }
eZ\Publish\API\Repository\Values\Content\TrashItem
this class represents a trash item, which is actually a trashed location.
Definition: API/Repository/Values/Content/TrashItem.php:13
eZ\Publish\Core\REST\Client\Values\Content\TrashItem
Implementation of the \eZ\Publish\API\Repository\Values\Content\TrashItem class.
Definition: Core/REST/Client/Values/Content/TrashItem.php:18
eZ\Publish\Core\REST\Client\Values\Content\TrashItem\getContentInfo
getContentInfo()
Returns the content info of the content object of this location.
Definition: Core/REST/Client/Values/Content/TrashItem.php:27
eZ\Publish\Core\REST\Client\Values\Content\TrashItem\$location
$location
Definition: Core/REST/Client/Values/Content/TrashItem.php:20
eZ\Publish\Core\REST\Client\Values\Content\TrashItem\__get
__get($property)
Magic get function handling read to non public properties.
Definition: Core/REST/Client/Values/Content/TrashItem.php:32
eZ\Publish\Core\REST\Client\Values\Content
Definition: Publish/Core/REST/Client/Values/Content/Content.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.