]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/lib/Sabre/CalDAV/Principal/Collection.php
Initial Release of the calendar plugin
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / CalDAV / Principal / Collection.php
1 <?php
2
3 /**
4  * Principal collection
5  *
6  * This is an alternative collection to the standard ACL principal collection.
7  * This collection adds support for the calendar-proxy-read and
8  * calendar-proxy-write sub-principals, as defined by the caldav-proxy
9  * specification.
10  *
11  * @package Sabre
12  * @subpackage CalDAV
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_CalDAV_Principal_Collection extends Sabre_DAVACL_AbstractPrincipalCollection {
18
19     /**
20      * Returns a child object based on principal information
21      *
22      * @param array $principalInfo
23      * @return Sabre_CalDAV_Principal_User
24      */
25     public function getChildForPrincipal(array $principalInfo) {
26
27         return new Sabre_CalDAV_Principal_User($this->principalBackend, $principalInfo);
28
29     }
30
31 }