PrincipalCollection.php 1.0 KB

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