Ejemplo n.º 1
0
 /**
  * This method is called when a user replied to a request to share.
  *
  * This method should return the url of the newly created calendar if the
  * share was accepted.
  *
  * @param string href The sharee who is replying (often a mailto: address)
  * @param int status One of the SharingPlugin::STATUS_* constants
  * @param string $calendarUri The url to the calendar thats being shared
  * @param string $inReplyTo The unique id this message is a response to
  * @param string $summary A description of the reply
  * @return null|string
  */
 public function shareReply($href, $status, $calendarUri, $inReplyTo, $summary = null)
 {
     if (!$this->caldavBackend instanceof Backend\SharingSupport) {
         throw new DAV\Exception\NotImplemented('Sharing support is not implemented by this backend.');
     }
     return $this->caldavBackend->shareReply($href, $status, $calendarUri, $inReplyTo, $summary);
 }
Ejemplo n.º 2
0
 /**
  * Searches through all of a users calendars and calendar objects to find
  * an object with a specific UID.
  *
  * This method should return the path to this object, relative to the
  * calendar home, so this path usually only contains two parts:
  *
  * calendarpath/objectpath.ics
  *
  * If the uid is not found, return null.
  *
  * This method should only consider * objects that the principal owns, so
  * any calendars owned by other principals that also appear in this
  * collection should be ignored.
  *
  * @param string $uid
  * @return string|null
  */
 function getCalendarObjectByUID($uid)
 {
     return $this->caldavBackend->getCalendarObjectByUID($this->principalInfo['uri'], $uid);
 }