@@ 292-308 (lines=17) @@ | ||
289 | * @param array $options |
|
290 | * @return Type\BaseFolderType |
|
291 | */ |
|
292 | public function getFolder($identifier, $options = []) |
|
293 | { |
|
294 | $request = array( |
|
295 | 'FolderShape' => array( |
|
296 | 'BaseShape' => array('_' => 'Default') |
|
297 | ), |
|
298 | 'FolderIds' => $identifier |
|
299 | ); |
|
300 | ||
301 | $request = array_replace_recursive($request, $options); |
|
302 | ||
303 | $request = Type::buildFromArray($request); |
|
304 | ||
305 | $response = $this->getClient()->GetFolder($request); |
|
306 | ||
307 | return $response; |
|
308 | } |
|
309 | ||
310 | /** |
|
311 | * Get a folder by it's distinguishedId |
|
@@ 395-409 (lines=15) @@ | ||
392 | * @param array $options |
|
393 | * @return Type |
|
394 | */ |
|
395 | public function getItem($itemId, $options = array()) |
|
396 | { |
|
397 | if ($itemId instanceof Type\ItemIdType) { |
|
398 | $itemId = $itemId->toArray(); |
|
399 | } |
|
400 | ||
401 | $request = array( |
|
402 | 'ItemShape' => array('BaseShape' => 'AllProperties'), |
|
403 | 'ItemIds' => array('ItemId' => $itemId) |
|
404 | ); |
|
405 | ||
406 | $request = array_replace_recursive($request, $options); |
|
407 | ||
408 | return $this->getClient()->GetItem($request); |
|
409 | } |
|
410 | ||
411 | /** |
|
412 | * Get a list of sync changes on a folder |