| @@ 386-400 (lines=15) @@ | ||
| 383 | * @param array $options |
|
| 384 | * @return Type |
|
| 385 | */ |
|
| 386 | public function getItem($itemId, $options = array()) |
|
| 387 | { |
|
| 388 | if ($itemId instanceof Type\ItemIdType) { |
|
| 389 | $itemId = $itemId->toArray(); |
|
| 390 | } |
|
| 391 | ||
| 392 | $request = array( |
|
| 393 | 'ItemShape' => array('BaseShape' => 'AllProperties'), |
|
| 394 | 'ItemIds' => array('ItemId' => $itemId) |
|
| 395 | ); |
|
| 396 | ||
| 397 | $request = array_replace_recursive($request, $options); |
|
| 398 | ||
| 399 | return $this->getClient()->GetItem($request); |
|
| 400 | } |
|
| 401 | ||
| 402 | /** |
|
| 403 | * Get a list of sync changes on a folder |
|
| @@ 181-196 (lines=16) @@ | ||
| 178 | return $this->createItems($items, $options); |
|
| 179 | } |
|
| 180 | ||
| 181 | public function getAttachment(Type\AttachmentIdType $attachmentId, $options = []) |
|
| 182 | { |
|
| 183 | $request = array( |
|
| 184 | 'AttachmentIds' => array( |
|
| 185 | $attachmentId->toXmlObject() |
|
| 186 | ), |
|
| 187 | 'AttachmentShape' => array( |
|
| 188 | 'IncludeMimeContent' => true |
|
| 189 | ) |
|
| 190 | ); |
|
| 191 | ||
| 192 | $request = array_replace_recursive($request, $options); |
|
| 193 | ||
| 194 | $attachment = $this->getClient()->GetAttachment($request); |
|
| 195 | return $attachment; |
|
| 196 | } |
|
| 197 | ||
| 198 | /** |
|
| 199 | * @param array $options |
|