ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CalendarRoot.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\CalDAV;
4 
6 
21 
27  protected $caldavBackend;
28 
43  function __construct(PrincipalBackend\BackendInterface $principalBackend, Backend\BackendInterface $caldavBackend, $principalPrefix = 'principals') {
44 
45  parent::__construct($principalBackend, $principalPrefix);
46  $this->caldavBackend = $caldavBackend;
47 
48  }
49 
58  function getName() {
59 
60  return Plugin::CALENDAR_ROOT;
61 
62  }
63 
74  function getChildForPrincipal(array $principal) {
75 
76  return new CalendarHome($this->caldavBackend, $principal);
77 
78  }
79 
80 }
getName()
Returns the nodename.
const CALENDAR_ROOT
The hardcoded root for calendar objects.
Definition: Plugin.php:44
The CalendarHome represents a node that is usually in a users&#39; calendar-homeset.
getChildForPrincipal(array $principal)
This method returns a node for a principal.
__construct(PrincipalBackend\BackendInterface $principalBackend, Backend\BackendInterface $caldavBackend, $principalPrefix='principals')
Constructor.
Calendars collection.
Implement this interface to create your own principal backends.