@@ 192-199 (lines=8) @@ | ||
189 | * |
|
190 | * @return array |
|
191 | */ |
|
192 | public function getItemByPath(string $path, string $itemId = ''):array |
|
193 | { |
|
194 | if (empty($itemId)) { |
|
195 | return $this->get("Items/ByPath?Path={$path}"); |
|
196 | } else { |
|
197 | return $this->get("Items({$itemId})/ByPath?Path={$path}"); |
|
198 | } |
|
199 | } |
|
200 | ||
201 | /** |
|
202 | * Get breadcrumps of an item. |
|
@@ 508-515 (lines=8) @@ | ||
505 | * |
|
506 | * @return array |
|
507 | */ |
|
508 | public function getItemAccessControls(string $itemId, string $userId = ''):array |
|
509 | { |
|
510 | if (! empty($userId)) { |
|
511 | return $this->get("AccessControls(principalid={$userId},itemid={$itemId})"); |
|
512 | } else { |
|
513 | return $this->get("Items({$itemId})/AccessControls"); |
|
514 | } |
|
515 | } |
|
516 | ||
517 | /** |
|
518 | * Build API uri. |