3use Sabre\CalDAV\Notifications\ICollection;
5use Sabre\DAV\Exception\NotFound;
6use Sabre\DAV\Exception\BadRequest;
7use Sabre\DAV\Exception\Forbidden;
47 $this->client_id =
$DIC[
'ilias']->getClientId();
48 $this->username =
$DIC->user()->getFullname();
49 $this->user_id =
$DIC->user()->getId();
73 return array(
new ilClientNodeDAV($this->client_id, $this->repo_helper, $this->dav_helper));
75 throw new Forbidden(
'Only for logged in users');
90 if (
$name == $this->client_id) {
91 return new ilClientNodeDAV($this->client_id, $this->repo_helper, $this->dav_helper);
104 if (
$name == $this->client_id) {
117 return strtotime(
'2000-01-01');
128 throw new Forbidden(
"It is not possible to create a directory here");
141 throw new Forbidden(
"It is not possible to create a file here");
152 throw new Forbidden(
"It is not possible to change the name of the root");
160 public function delete()
162 throw new Forbidden(
"It is not possible to delete the root");
An exception for terminatinating execution or to throw for unit testing.
This exception indicates that an UI component was accepted by the JF but is not backed by a real impl...
createFile($name, $data=null)
It is not allowed (not even possible) to create a file here.
getChildren()
Returns client node if user exists and is not anonymous.
createDirectory($name)
It is not allowed (not even possible) to create a directory here.
__construct(ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper)
getName()
Return MountPoint as name.
childExists($name)
Check if given name matches the used Client ID.
getChild($name)
Returns Client Node if Client ID is correct.
getLastModified()
Return a default date as LastModified.
setName($name)
It is not possible to set the name for the MountPoint.
Class ilWebDAVObjDAVHelper.
Class ilWebDAVRepositoryHelper.