caldavBackend = $caldavBackend; $this->principalUri = $principalUri; } /** * 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 Sabre_CalDAV_Notifications_Node( $this->caldavBackend, $notification ); } return $children; } /** * Returns the name of this object * * @return string */ public function getName() { return 'notifications'; } }