@@ 253-266 (lines=14) @@ | ||
250 | * |
|
251 | * @return ResourceCollection |
|
252 | */ |
|
253 | public function getItems( |
|
254 | RequestParameters $paramObj, |
|
255 | $page = null, |
|
256 | $maxResults = null |
|
257 | ) { |
|
258 | $itemCollection = new ResourceCollection( |
|
259 | new ItemAdapter( |
|
260 | $this->client, |
|
261 | $this->getNewRequest(self::SUPERDESK_ENDPOINT_ITEMS, $paramObj) |
|
262 | ) |
|
263 | ); |
|
264 | ||
265 | return $itemCollection; |
|
266 | } |
|
267 | ||
268 | /** |
|
269 | * Get package by identifier. |
|
@@ 304-320 (lines=17) @@ | ||
301 | * |
|
302 | * @return ResourceCollection |
|
303 | */ |
|
304 | public function getPackages( |
|
305 | RequestParameters $paramObj, |
|
306 | $resolveAssociations = false, |
|
307 | $page = null, |
|
308 | $maxResults = null |
|
309 | ) { |
|
310 | $packageCollection = new ResourceCollection( |
|
311 | new PackageAdapter( |
|
312 | $this->client, |
|
313 | $this->getNewRequest(self::SUPERDESK_ENDPOINT_PACKAGES, $paramObj), |
|
314 | $this, |
|
315 | $resolveAssociations |
|
316 | ) |
|
317 | ); |
|
318 | ||
319 | return $packageCollection; |
|
320 | } |
|
321 | ||
322 | /** |
|
323 | * Gets full objects for all associations for a package. |