31 throw new DAV\Exception\Forbidden(
'Permission denied to create file (filename ' .
$name .
')');
44 throw new DAV\Exception\Forbidden(
'Permission denied to create directory');
56 $principal = $this->principalBackend->getPrincipalByPath($this->getPrincipalURL() .
'/' .
$name);
58 throw new DAV\Exception\NotFound(
'Node with name ' .
$name .
' was not found');
60 if (
$name ===
'calendar-proxy-read')
61 return new ProxyRead($this->principalBackend, $this->principalProperties);
63 if (
$name ===
'calendar-proxy-write')
64 return new ProxyWrite($this->principalBackend, $this->principalProperties);
66 throw new DAV\Exception\NotFound(
'Node with name ' .
$name .
' was not found');
78 if ($this->principalBackend->getPrincipalByPath($this->getPrincipalURL() .
'/calendar-proxy-read')) {
79 $r[] =
new ProxyRead($this->principalBackend, $this->principalProperties);
81 if ($this->principalBackend->getPrincipalByPath($this->getPrincipalURL() .
'/calendar-proxy-write')) {
82 $r[] =
new ProxyWrite($this->principalBackend, $this->principalProperties);
120 $acl = parent::getACL();
122 'privilege' =>
'{DAV:}read',
123 'principal' => $this->principalProperties[
'uri'] .
'/calendar-proxy-read',
127 'privilege' =>
'{DAV:}read',
128 'principal' => $this->principalProperties[
'uri'] .
'/calendar-proxy-write',
getChildren()
Returns an array with all the child nodes.
getACL()
Returns a list of ACE's for this node.
The ICollection Interface.
getChild($name)
Returns a specific child node, referenced by its name.
createFile($name, $data=null)
Creates a new file in the directory.
createDirectory($name)
Creates a new subdirectory.
childExists($name)
Returns whether or not the child node exists.