mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-29 08:00:28 +01:00
34 lines
822 B
PHP
34 lines
822 B
PHP
<?php
|
|
|
|
namespace Sabre\CalDAV\Principal;
|
|
|
|
use Sabre\DAVACL;
|
|
|
|
/**
|
|
* Principal collection
|
|
*
|
|
* This is an alternative collection to the standard ACL principal collection.
|
|
* This collection adds support for the calendar-proxy-read and
|
|
* calendar-proxy-write sub-principals, as defined by the caldav-proxy
|
|
* specification.
|
|
*
|
|
* @copyright Copyright (C) fruux GmbH (https://fruux.com/)
|
|
* @author Evert Pot (http://evertpot.com/)
|
|
* @license http://sabre.io/license/ Modified BSD License
|
|
*/
|
|
class Collection extends DAVACL\PrincipalCollection {
|
|
|
|
/**
|
|
* Returns a child object based on principal information
|
|
*
|
|
* @param array $principalInfo
|
|
* @return User
|
|
*/
|
|
function getChildForPrincipal(array $principalInfo) {
|
|
|
|
return new User($this->principalBackend, $principalInfo);
|
|
|
|
}
|
|
|
|
}
|