authBackend = $authBackend; $this->caldavBackend = $caldavBackend; } /** * Returns the name of the node * * @return string */ public function getName() { return Sabre_CalDAV_Plugin::CALENDAR_ROOT; } /** * Returns the list of users as Sabre_CalDAV_User objects. * * @return array */ public function getChildren() { $users = $this->authBackend->getUsers(); $children = array(); foreach($users as $user) { $children[] = new Sabre_CalDAV_UserCalendars($this->authBackend, $this->caldavBackend, $user['uri']); } return $children; } }