]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/lib/Sabre/DAVACL/PrincipalCollection.php
Merge branch 'master' of git://github.com/friendica/friendica-addons
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / DAVACL / PrincipalCollection.php
1 <?php
2
3 /**
4  * Principals Collection
5  *
6  * This collection represents a list of users. It uses
7  * Sabre_DAV_Auth_Backend to determine which users are available on the list.
8  *
9  * The users are instances of Sabre_DAV_Auth_Principal
10  *
11  * @package Sabre
12  * @subpackage DAVACL
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
16  */
17 class Sabre_DAVACL_PrincipalCollection extends Sabre_DAVACL_AbstractPrincipalCollection {
18
19     /**
20      * This method returns a node for a principal.
21      *
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.
25      *
26      * @param array $principal
27      * @return Sabre_DAV_INode
28      */
29     public function getChildForPrincipal(array $principal) {
30
31         return new Sabre_DAVACL_Principal($this->principalBackend, $principal);
32
33     }
34
35 }