2017-10-01 10:03:30 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2017-10-01 10:03:30 -04:00
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-10-01 10:03:30 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCA\DAV\CalDAV\Principal;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class Collection
|
|
|
|
|
*
|
|
|
|
|
* @package OCA\DAV\CalDAV\Principal
|
|
|
|
|
*/
|
|
|
|
|
class Collection extends \Sabre\CalDAV\Principal\Collection {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns a child object based on principal information
|
|
|
|
|
*
|
|
|
|
|
* @param array $principalInfo
|
|
|
|
|
* @return User
|
|
|
|
|
*/
|
2020-04-10 10:51:06 -04:00
|
|
|
public function getChildForPrincipal(array $principalInfo) {
|
2017-10-01 10:03:30 -04:00
|
|
|
return new User($this->principalBackend, $principalInfo);
|
|
|
|
|
}
|
|
|
|
|
}
|