authBackend = $authBackend; } /** * Returns the name of this collection. * * @return string */ public function getName() { return self::NODENAME; } /** * Retursn the list of users * * @return void */ public function getChildren() { $children = array(); foreach($this->authBackend->getUsers() as $principalInfo) { $principalUri = $principalInfo['uri'] . '/'; $children[] = new Sabre_DAV_Auth_Principal($principalUri,$principalInfo); } return $children; } }