@@ -267,6 +267,9 @@ discard block |
||
| 267 | 267 | return \array_values($calendars); |
| 268 | 268 | } |
| 269 | 269 | |
| 270 | + /** |
|
| 271 | + * @param string $principalUri |
|
| 272 | + */ |
|
| 270 | 273 | public function getUsersOwnCalendars($principalUri) { |
| 271 | 274 | $principalUri = $this->convertPrincipal($principalUri, true); |
| 272 | 275 | $fields = \array_values($this->propertyMap); |
@@ -717,9 +720,9 @@ discard block |
||
| 717 | 720 | * |
| 718 | 721 | * This method must return null if the object did not exist. |
| 719 | 722 | * |
| 720 | - * @param mixed $calendarId |
|
| 723 | + * @param integer $calendarId |
|
| 721 | 724 | * @param string $objectUri |
| 722 | - * @return array|null |
|
| 725 | + * @return \Sabre\VObject\Component\VCalendar |
|
| 723 | 726 | */ |
| 724 | 727 | public function getCalendarObject($calendarId, $objectUri) { |
| 725 | 728 | $query = $this->db->getQueryBuilder(); |
@@ -809,7 +812,7 @@ discard block |
||
| 809 | 812 | * calendar-data. If the result of a subsequent GET to this object is not |
| 810 | 813 | * the exact same as this request body, you should omit the ETag. |
| 811 | 814 | * |
| 812 | - * @param mixed $calendarId |
|
| 815 | + * @param integer $calendarId |
|
| 813 | 816 | * @param string $objectUri |
| 814 | 817 | * @param string $calendarData |
| 815 | 818 | * @return string |
@@ -855,7 +858,7 @@ discard block |
||
| 855 | 858 | * calendar-data. If the result of a subsequent GET to this object is not |
| 856 | 859 | * the exact same as this request body, you should omit the ETag. |
| 857 | 860 | * |
| 858 | - * @param mixed $calendarId |
|
| 861 | + * @param integer $calendarId |
|
| 859 | 862 | * @param string $objectUri |
| 860 | 863 | * @param string $calendarData |
| 861 | 864 | * @return string |
@@ -1260,7 +1263,7 @@ discard block |
||
| 1260 | 1263 | * @param string $principalUri |
| 1261 | 1264 | * @param string $uri |
| 1262 | 1265 | * @param array $properties |
| 1263 | - * @return mixed |
|
| 1266 | + * @return integer |
|
| 1264 | 1267 | * @throws Forbidden |
| 1265 | 1268 | */ |
| 1266 | 1269 | public function createSubscription($principalUri, $uri, array $properties) { |
@@ -1658,6 +1661,9 @@ discard block |
||
| 1658 | 1661 | return $this->sharingBackend->applyShareAcl($resourceId, $acl); |
| 1659 | 1662 | } |
| 1660 | 1663 | |
| 1664 | + /** |
|
| 1665 | + * @param boolean $toV2 |
|
| 1666 | + */ |
|
| 1661 | 1667 | private function convertPrincipal($principalUri, $toV2 = null) { |
| 1662 | 1668 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
| 1663 | 1669 | list(, $name) = URLUtil::splitPath($principalUri); |