diff options
Diffstat (limited to 'apps/dav/lib/Avatars/RootCollection.php')
-rw-r--r-- | apps/dav/lib/Avatars/RootCollection.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/dav/lib/Avatars/RootCollection.php b/apps/dav/lib/Avatars/RootCollection.php new file mode 100644 index 00000000000..8cad3d3721a --- /dev/null +++ b/apps/dav/lib/Avatars/RootCollection.php @@ -0,0 +1,28 @@ +<?php + +namespace OCA\DAV\Avatars; + +use Sabre\DAVACL\AbstractPrincipalCollection; +use Sabre\DAVACL\IPrincipal; + +class RootCollection extends AbstractPrincipalCollection { + + /** + * This method returns a node for a principal. + * + * The passed array contains principal information, and is guaranteed to + * at least contain a uri item. Other properties may or may not be + * supplied by the authentication backend. + * + * @param array $principalInfo + * @return IPrincipal + */ + function getChildForPrincipal(array $principalInfo) { + return new AvatarHome($principalInfo); + } + + function getName() { + return 'avatars'; + } + +} |