/** * 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; }
/** * Deletes this notification * * @return void */ public function delete() { $this->caldavBackend->deleteNotification($this->getOwner(), $this->notification); }