1 | <?php |
||
18 | class Location extends APILocation |
||
19 | { |
||
20 | /** |
||
21 | * Content info of the content object of this location. |
||
22 | * |
||
23 | * @var \eZ\Publish\API\Repository\Values\Content\ContentInfo |
||
24 | */ |
||
25 | protected $contentInfo; |
||
26 | |||
27 | /** @var array */ |
||
28 | protected $path; |
||
29 | |||
30 | /** @var \eZ\Publish\API\Repository\Values\Content\Location|null */ |
||
31 | protected $parentLocation; |
||
32 | |||
33 | /** |
||
34 | * Returns the content info of the content object of this location. |
||
35 | * |
||
36 | * @return \eZ\Publish\API\Repository\Values\Content\ContentInfo |
||
37 | */ |
||
38 | public function getContentInfo() |
||
42 | |||
43 | public function getParentLocation(): ?APILocation |
||
47 | |||
48 | /** |
||
49 | * Function where list of properties are returned. |
||
50 | * |
||
51 | * Override to add dynamic properties |
||
52 | * |
||
53 | * @uses \parent::getProperties() |
||
54 | * |
||
55 | * @param array $dynamicProperties |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | protected function getProperties($dynamicProperties = ['contentId']) |
||
63 | |||
64 | /** |
||
65 | * Magic getter for retrieving convenience properties. |
||
66 | * |
||
67 | * @param string $property The name of the property to retrieve |
||
68 | * |
||
69 | * @return mixed |
||
70 | */ |
||
71 | public function __get($property) |
||
89 | |||
90 | /** |
||
91 | * Magic isset for signaling existence of convenience properties. |
||
92 | * |
||
93 | * @param string $property |
||
94 | * |
||
95 | * @return bool |
||
96 | */ |
||
97 | public function __isset($property) |
||
105 | } |
||
106 |