3use Sabre\DAV\Exception\BadRequest;
 
    4use Sabre\DAV\Exception\Forbidden;
 
    5use Sabre\DAV\Exception\NotFound;
 
   47        $this->client_name = $client_name;
 
   48        $this->name_of_repository_root = 
'ILIAS';
 
   59        throw new Forbidden(
"You cant change the client name");
 
   80        return $this->client_name;
 
   90        return strtotime(
'2000-01-01');
 
  108        if (
$name == $this->name_of_repository_root) {
 
  128            if ($this->repo_helper->checkAccess(
'read', $ref_id)) {
 
  129                return $this->dav_helper->createDAVObjectForRefId($ref_id);
 
  132            throw new Forbidden(
"No read permission for object with reference ID $ref_id ");
 
  135        throw new BadRequest(
"Invalid parameter $name");
 
  148        throw new Forbidden(
"No read permission for ilias repository root");
 
  161        if (
$name == $this->name_of_repository_root) {
 
  167            return $this->repo_helper->objectWithRefIdExists($ref_id) && $this->repo_helper->checkAccess(
'read', $ref_id);
 
  180        $ref_parts = explode(
'_', 
$name);
 
  181        if (count($ref_parts) == 2) {
 
  182            $ref_id = (int) $ref_parts[1];
 
  198            && $this->repo_helper->objectWithRefIdExists($ref_id)
 
  199            && $this->dav_helper->isDAVableObject($ref_id, 
true, 
false)) {
 
  212        throw new Forbidden();
 
  220    public function delete()
 
  222        throw new Forbidden();
 
  235        throw new Forbidden();
 
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.