43 $this->dav_helper = $dav_helper;
44 $this->client_name = $client_name;
45 $this->name_of_repository_root =
'ILIAS';
56 throw new Forbidden(
"You cant change the client name");
77 return $this->client_name;
87 return strtotime(
'2000-01-01');
105 if (
$name == $this->name_of_repository_root) {
125 if ($this->repo_helper->checkAccess(
'read', $ref_id)) {
126 return $this->dav_helper->createDAVObjectForRefId($ref_id);
129 throw new Forbidden(
"No read permission for object with reference ID $ref_id ");
132 throw new BadRequest(
"Invalid parameter $name");
142 if ($this->repo_helper->checkAccess(
'read', ROOT_FOLDER_ID)) {
145 throw new Forbidden(
"No read permission for ilias repository root");
158 if (
$name == $this->name_of_repository_root) {
164 return $this->repo_helper->objectWithRefIdExists($ref_id) && $this->repo_helper->checkAccess(
'read', $ref_id);
177 $ref_parts = explode(
'_',
$name);
178 if (count($ref_parts) == 2) {
179 $ref_id = (int) $ref_parts[1];
194 if ($ref_id > 0 && $this->repo_helper->objectWithRefIdExists($ref_id) && $this->dav_helper->isDAVableObject($ref_id,
true,
false)) {
215 public function delete()
getMountPointByReference($name)
Create DAV-Object from ref_id.
Class ilWebDAVRepositoryHelper.
getChild($name)
If the "ILIAS" is given as parameter, the repository root will be returned.
Class ilObjRepositoryRootDAV.
Class ilWebDAVObjDAVHelper.
getRefIdFromName($name)
Gets ref_id from name.
checkIfRefIdIsValid($ref_id)
Check if object with ref_id exists and if is DAVable object.
getName()
Return name of client.
childExists($name)
Either the given name is the name of the repository root of ILIAS or it is a reference to a node in t...
createFile($name, $data=null)
It is not allowed (and not even possible) to create a file here.
getChildren()
Returns Repository Root Object.
getRepositoryRootPoint()
Creates and returns Repository Root Object.
createDirectory($name)
It is not allowed to create a directory here.
__construct(string $client_name, ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper)
getLastModified()
Returns some date as return for last modified.
setName($name)
Overwrite parent function to throw an exception if called.