1 | <?php |
||
47 | abstract class AbstractDomainProperties extends \Apparat\Object\Domain\Model\Properties\AbstractDomainProperties |
||
48 | { |
||
49 | /** |
||
50 | * Name |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | const NAME = 'name'; |
||
55 | /** |
||
56 | * Publication date & time |
||
57 | * |
||
58 | * @var string |
||
59 | */ |
||
60 | const PUBLISHED = 'published'; |
||
61 | /** |
||
62 | * Modification date & time |
||
63 | * |
||
64 | * @var string |
||
65 | */ |
||
66 | const UPDATED = 'updated'; |
||
67 | /** |
||
68 | * Authors |
||
69 | * |
||
70 | * @var string |
||
71 | */ |
||
72 | const AUTHOR = 'author'; |
||
73 | /** |
||
74 | * Categories |
||
75 | * |
||
76 | * @var string |
||
77 | */ |
||
78 | const CATEGORY = 'category'; |
||
79 | /** |
||
80 | * URL |
||
81 | * |
||
82 | * @var string |
||
83 | */ |
||
84 | const URL = 'url'; |
||
85 | /** |
||
86 | * UID |
||
87 | * |
||
88 | * @var string |
||
89 | */ |
||
90 | const UID = 'uid'; |
||
91 | /** |
||
92 | * Location |
||
93 | * |
||
94 | * @var string |
||
95 | */ |
||
96 | const LOCATION = 'location'; |
||
97 | /** |
||
98 | * Syndication URLs |
||
99 | * |
||
100 | * @var string |
||
101 | */ |
||
102 | const SYNDICATION = 'syndication'; |
||
103 | |||
104 | /** |
||
105 | * Set a property value by path list and base data |
||
106 | * |
||
107 | * @param array $propertyPath Path list |
||
108 | * @param array $propertyTree Base data |
||
109 | * @param mixed $value Property value |
||
110 | * @return AbstractDomainProperties Self reference |
||
111 | */ |
||
112 | 4 | protected function setPropertyPath(array $propertyPath, array $propertyTree, $value) |
|
127 | |||
128 | /** |
||
129 | * Traverse the property tree and return a node |
||
130 | * |
||
131 | * @param array $propertyPath Property name path |
||
132 | * @param array $propertyTree Copy of the current property tree |
||
133 | * @param boolean $created Property has been created |
||
134 | * @param PropertyModel $propertyModel Property model |
||
135 | * @return mixed Property node |
||
136 | * @throws DomainException If an invalid subproperty should be allocated |
||
137 | */ |
||
138 | 4 | protected function &findPropertyNode( |
|
179 | |||
180 | /** |
||
181 | * Set a property value |
||
182 | * |
||
183 | * @param mixed $property Property |
||
184 | * @param mixed $value Value |
||
185 | * @param array $propertyPath Property path |
||
186 | * @param PropertyModel $propertyModel Property model |
||
187 | */ |
||
188 | 4 | protected function setPropertyValue( |
|
213 | } |
||
214 |