Collection.php 822 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Sabre\CalDAV\Principal;
  3. use Sabre\DAVACL;
  4. /**
  5. * Principal collection
  6. *
  7. * This is an alternative collection to the standard ACL principal collection.
  8. * This collection adds support for the calendar-proxy-read and
  9. * calendar-proxy-write sub-principals, as defined by the caldav-proxy
  10. * specification.
  11. *
  12. * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
  13. * @author Evert Pot (http://evertpot.com/)
  14. * @license http://sabre.io/license/ Modified BSD License
  15. */
  16. class Collection extends DAVACL\PrincipalCollection {
  17. /**
  18. * Returns a child object based on principal information
  19. *
  20. * @param array $principalInfo
  21. * @return User
  22. */
  23. function getChildForPrincipal(array $principalInfo) {
  24. return new User($this->principalBackend, $principalInfo);
  25. }
  26. }