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()
 
An exception for terminatinating execution or to throw for unit testing.
getChildren()
Returns Repository Root Object.
checkIfRefIdIsValid($ref_id)
Check if object with ref_id exists and if is DAVable object.
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...
__construct(string $client_name, ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper)
createDirectory($name)
It is not allowed to create a directory here.
getRefIdFromName($name)
Gets ref_id from name.
getChild($name)
If the "ILIAS" is given as parameter, the repository root will be returned.
getMountPointByReference($name)
Create DAV-Object from ref_id.
getName()
Return name of client.
getRepositoryRootPoint()
Creates and returns Repository Root Object.
createFile($name, $data=null)
It is not allowed (and not even possible) to create a file here.
setName($name)
Overwrite parent function to throw an exception if called.
getLastModified()
Returns some date as return for last modified.
Class ilObjRepositoryRootDAV.
Class ilWebDAVObjDAVHelper.
Class ilWebDAVRepositoryHelper.
The ICollection Interface.