You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
621 B

  1. <?php
  2. namespace OCA\DAV\Files;
  3. use Sabre\DAVACL\AbstractPrincipalCollection;
  4. use Sabre\DAVACL\IPrincipal;
  5. class RootCollection extends AbstractPrincipalCollection {
  6. /**
  7. * This method returns a node for a principal.
  8. *
  9. * The passed array contains principal information, and is guaranteed to
  10. * at least contain a uri item. Other properties may or may not be
  11. * supplied by the authentication backend.
  12. *
  13. * @param array $principalInfo
  14. * @return IPrincipal
  15. */
  16. function getChildForPrincipal(array $principalInfo) {
  17. return new FilesHome($principalInfo);
  18. }
  19. function getName() {
  20. return 'files';
  21. }
  22. }