@@ -266,6 +266,9 @@ discard block |
||
266 | 266 | return \array_values($calendars); |
267 | 267 | } |
268 | 268 | |
269 | + /** |
|
270 | + * @param string $principalUri |
|
271 | + */ |
|
269 | 272 | public function getUsersOwnCalendars($principalUri) { |
270 | 273 | $principalUri = $this->convertPrincipal($principalUri, true); |
271 | 274 | $fields = \array_values($this->propertyMap); |
@@ -1259,7 +1262,7 @@ discard block |
||
1259 | 1262 | * @param string $principalUri |
1260 | 1263 | * @param string $uri |
1261 | 1264 | * @param array $properties |
1262 | - * @return mixed |
|
1265 | + * @return integer |
|
1263 | 1266 | * @throws Forbidden |
1264 | 1267 | */ |
1265 | 1268 | public function createSubscription($principalUri, $uri, array $properties) { |
@@ -1657,6 +1660,9 @@ discard block |
||
1657 | 1660 | return $this->sharingBackend->applyShareAcl($resourceId, $acl); |
1658 | 1661 | } |
1659 | 1662 | |
1663 | + /** |
|
1664 | + * @param boolean $toV2 |
|
1665 | + */ |
|
1660 | 1666 | private function convertPrincipal($principalUri, $toV2 = null) { |
1661 | 1667 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
1662 | 1668 | list(, $name) = \Sabre\Uri\split($principalUri); |
@@ -223,7 +223,8 @@ discard block |
||
223 | 223 | } |
224 | 224 | |
225 | 225 | /** |
226 | - * @param $addressBookUri |
|
226 | + * @param string $addressBookUri |
|
227 | + * @param string $principal |
|
227 | 228 | * @return array|null |
228 | 229 | */ |
229 | 230 | public function getAddressBooksByUri($principal, $addressBookUri) { |
@@ -912,6 +913,7 @@ discard block |
||
912 | 913 | * * readOnly - boolean |
913 | 914 | * * summary - Optional, a description for the share |
914 | 915 | * |
916 | + * @param integer $addressBookId |
|
915 | 917 | * @return array |
916 | 918 | */ |
917 | 919 | public function getShares($addressBookId) { |
@@ -1017,7 +1019,7 @@ discard block |
||
1017 | 1019 | |
1018 | 1020 | /** |
1019 | 1021 | * For shared address books the sharee is set in the ACL of the address book |
1020 | - * @param $addressBookId |
|
1022 | + * @param integer $addressBookId |
|
1021 | 1023 | * @param $acl |
1022 | 1024 | * @return array |
1023 | 1025 | */ |
@@ -1025,6 +1027,9 @@ discard block |
||
1025 | 1027 | return $this->sharingBackend->applyShareAcl($addressBookId, $acl); |
1026 | 1028 | } |
1027 | 1029 | |
1030 | + /** |
|
1031 | + * @param boolean $toV2 |
|
1032 | + */ |
|
1028 | 1033 | private function convertPrincipal($principalUri, $toV2 = null) { |
1029 | 1034 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
1030 | 1035 | list(, $name) = \Sabre\Uri\split($principalUri); |