Example #1
0
 /**
  * Returns all notifications for a principal
  *
  * @return array
  */
 public function getChildren()
 {
     $children = array();
     $notifications = $this->caldavBackend->getNotificationsForPrincipal($this->principalUri);
     foreach ($notifications as $notification) {
         $children[] = new Node($this->caldavBackend, $this->principalUri, $notification);
     }
     return $children;
 }
Example #2
0
 /**
  * Deletes this notification
  *
  * @return void
  */
 public function delete()
 {
     $this->caldavBackend->deleteNotification($this->getOwner(), $this->notification);
 }