1 | <?php |
||
22 | trait ActivityDomainTrait { |
||
23 | |||
24 | /** |
||
25 | */ |
||
26 | protected $pool; |
||
27 | |||
28 | /** |
||
29 | * Creates a new Activity with the provided data |
||
30 | * |
||
31 | * @param mixed $data |
||
32 | * @return PayloadInterface |
||
33 | */ |
||
34 | public function create($data) { |
||
49 | |||
50 | /** |
||
51 | * Deletes a Activity with the given id |
||
52 | * |
||
53 | * @param mixed $id |
||
54 | * @return PayloadInterface |
||
55 | */ |
||
56 | public function delete($id) { |
||
73 | |||
74 | /** |
||
75 | * Returns a paginated result |
||
76 | * |
||
77 | * @param Parameters $params |
||
78 | * @return PayloadInterface |
||
79 | */ |
||
80 | public function paginate(Parameters $params) { |
||
107 | |||
108 | /** |
||
109 | * Returns one Activity with the given id |
||
110 | * |
||
111 | * @param mixed $id |
||
112 | * @return PayloadInterface |
||
113 | */ |
||
114 | public function read($id) { |
||
125 | |||
126 | /** |
||
127 | * Sets the User id |
||
128 | * |
||
129 | * @param mixed $id |
||
130 | * @param mixed $actorId |
||
131 | * @return PayloadInterface |
||
132 | */ |
||
133 | public function setActorId($id, $actorId) { |
||
150 | |||
151 | /** |
||
152 | * Sets the ActivityObject id |
||
153 | * |
||
154 | * @param mixed $id |
||
155 | * @param mixed $targetId |
||
156 | * @return PayloadInterface |
||
157 | */ |
||
158 | public function setTargetId($id, $targetId) { |
||
175 | |||
176 | /** |
||
177 | * Updates a Activity with the given idand the provided data |
||
178 | * |
||
179 | * @param mixed $id |
||
180 | * @param mixed $data |
||
181 | * @return PayloadInterface |
||
182 | */ |
||
183 | public function update($id, $data) { |
||
211 | |||
212 | /** |
||
213 | * Implement this functionality at keeko\core\domain\ActivityDomain |
||
214 | * |
||
215 | * @param ActivityQuery $query |
||
216 | * @param mixed $filter |
||
217 | */ |
||
218 | abstract protected function applyFilter(ActivityQuery $query, $filter); |
||
219 | |||
220 | /** |
||
221 | * Returns one Activity with the given id from cache |
||
222 | * |
||
223 | * @param mixed $id |
||
224 | * @return Activity|null |
||
225 | */ |
||
226 | protected function get($id) { |
||
238 | |||
239 | /** |
||
240 | * Returns the service container |
||
241 | * |
||
242 | * @return ServiceContainer |
||
243 | */ |
||
244 | abstract protected function getServiceContainer(); |
||
245 | } |
||
246 |
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.