4 * Principals Collection
6 * This collection represents a list of users. It uses
7 * Sabre_DAV_Auth_Backend to determine which users are available on the list.
9 * The users are instances of Sabre_DAV_Auth_Principal
13 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
14 * @author Evert Pot (http://www.rooftopsolutions.nl/)
15 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
17 class Sabre_DAVACL_PrincipalCollection extends Sabre_DAVACL_AbstractPrincipalCollection {
20 * This method returns a node for a principal.
22 * The passed array contains principal information, and is guaranteed to
23 * at least contain a uri item. Other properties may or may not be
24 * supplied by the authentication backend.
26 * @param array $principal
27 * @return Sabre_DAV_INode
29 public function getChildForPrincipal(array $principal) {
31 return new Sabre_DAVACL_Principal($this->principalBackend, $principal);