@@ 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. |
|
@@ 507-514 (lines=8) @@ | ||
504 | * |
|
505 | * @return array |
|
506 | */ |
|
507 | public function getItemAccessControls(string $itemId, string $userId = ''):array |
|
508 | { |
|
509 | if (! empty($userId)) { |
|
510 | return $this->get("AccessControls(principalid={$userId},itemid={$itemId})"); |
|
511 | } else { |
|
512 | return $this->get("Items({$itemId})/AccessControls"); |
|
513 | } |
|
514 | } |
|
515 | ||
516 | /** |
|
517 | * Build API uri. |