@@ 188-195 (lines=8) @@ | ||
185 | * |
|
186 | * @return array |
|
187 | */ |
|
188 | public function getItemByPath(string $path, string $itemId = ''):array |
|
189 | { |
|
190 | if (empty($itemId)) { |
|
191 | return $this->get("Items/ByPath?Path={$path}"); |
|
192 | } else { |
|
193 | return $this->get("Items({$itemId})/ByPath?Path={$path}"); |
|
194 | } |
|
195 | } |
|
196 | ||
197 | /** |
|
198 | * Get breadcrumps of an item. |
|
@@ 441-448 (lines=8) @@ | ||
438 | * |
|
439 | * @return array |
|
440 | */ |
|
441 | public function getItemAccessControls(string $itemId, string $userId = ''):array |
|
442 | { |
|
443 | if (!empty($userId)) { |
|
444 | return $this->get("AccessControls(principalid={$userId},itemid={$itemId})"); |
|
445 | } else { |
|
446 | return $this->get("Items({$itemId})/AccessControls"); |
|
447 | } |
|
448 | } |
|
449 | ||
450 | /** |
|
451 | * Build API uri. |