ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilClientNodeDAV. More...
Public Member Functions | |
__construct (string $client_name, ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper) | |
setName ($name) | |
Overwrite parent function to throw an exception if called. More... | |
getChildren () | |
Returns Repository Root Object. More... | |
getName () | |
Return name of client. More... | |
getLastModified () | |
Returns some date as return for last modified. More... | |
getChild ($name) | |
If the "ILIAS" is given as parameter, the repository root will be returned. More... | |
childExists ($name) | |
Either the given name is the name of the repository root of ILIAS or it is a reference to a node in the ILIAS-repo. More... | |
getRefIdFromName ($name) | |
Gets ref_id from name. More... | |
createDirectory ($name) | |
It is not allowed to create a directory here. More... | |
delete () | |
It is not allowed to delete anything here. More... | |
createFile ($name, $data=null) | |
It is not allowed (and not even possible) to create a file here. More... | |
Protected Member Functions | |
getMountPointByReference ($name) | |
Create DAV-Object from ref_id. More... | |
getRepositoryRootPoint () | |
Creates and returns Repository Root Object. More... | |
checkIfRefIdIsValid ($ref_id) | |
Check if object with ref_id exists and if is DAVable object. More... | |
Protected Attributes | |
$repo_helper | |
$name_of_repository_root | |
Class ilClientNodeDAV.
This class represents the used ilias client. For example if your clients name is "my_ilias" and you are currently in the directory with the ref_id=123, the path would look like this: ilias.mysite.com/webdav.php/my_ilias/ref_123/
The call would look like this: -> webdav.php <- creates the request handler and initialize ilias -> ilWebDAVRequestHandler <- setup the webdav server -> ilObjMountPointDAV <- This represents the "root" node and is needed for sabreDAV -> ilMountPointDAV <- This class represents the used client (for example here it is my_ilias) -> child of ilContainerDAV
Definition at line 27 of file class.ilClientNodeDAV.php.
ilClientNodeDAV::__construct | ( | string | $client_name, |
ilWebDAVRepositoryHelper | $repo_helper, | ||
ilWebDAVObjDAVHelper | $dav_helper | ||
) |
string | $client_name |
Definition at line 38 of file class.ilClientNodeDAV.php.
References $DIC, and $repo_helper.
|
protected |
Check if object with ref_id exists and if is DAVable object.
$ref_id |
Definition at line 192 of file class.ilClientNodeDAV.php.
Referenced by getRefIdFromName().
ilClientNodeDAV::childExists | ( | $name | ) |
Either the given name is the name of the repository root of ILIAS or it is a reference to a node in the ILIAS-repo.
Returns true if name=name of repository root or if given reference exists and user has read permissions to this reference
Implements Sabre\DAV\ICollection.
Definition at line 156 of file class.ilClientNodeDAV.php.
References $name, and getRefIdFromName().
ilClientNodeDAV::createDirectory | ( | $name | ) |
It is not allowed to create a directory here.
string | $name |
Forbidden |
Implements Sabre\DAV\ICollection.
Definition at line 205 of file class.ilClientNodeDAV.php.
ilClientNodeDAV::createFile | ( | $name, | |
$data = null |
|||
) |
It is not allowed (and not even possible) to create a file here.
string | $name | |
null | $data |
Forbidden |
Implements Sabre\DAV\ICollection.
Definition at line 228 of file class.ilClientNodeDAV.php.
ilClientNodeDAV::delete | ( | ) |
It is not allowed to delete anything here.
Forbidden |
Implements Sabre\DAV\INode.
Definition at line 215 of file class.ilClientNodeDAV.php.
ilClientNodeDAV::getChild | ( | $name | ) |
If the "ILIAS" is given as parameter, the repository root will be returned.
Such an URL would look like this: https://ilias.de/webdav.php/client/ILIAS/
Otherwise, the given name will be inspected if it is a reference ID of a collection/container. If call is valid and permissions are granted, the collection/container will be returned. Such an URL would look like this: https://ilias.de/webdav.php/client/ref_12345/
string | $name |
BadRequest | |
Forbidden |
Implements Sabre\DAV\ICollection.
Definition at line 103 of file class.ilClientNodeDAV.php.
References $name, getMountPointByReference(), and getRepositoryRootPoint().
ilClientNodeDAV::getChildren | ( | ) |
Returns Repository Root Object.
Array is needed since a list of all children is expected.
Forbidden |
Implements Sabre\DAV\ICollection.
Definition at line 65 of file class.ilClientNodeDAV.php.
References getRepositoryRootPoint().
ilClientNodeDAV::getLastModified | ( | ) |
Returns some date as return for last modified.
Implements Sabre\DAV\INode.
Definition at line 85 of file class.ilClientNodeDAV.php.
|
protected |
Create DAV-Object from ref_id.
string | $name |
Forbidden | |
BadRequest |
Definition at line 120 of file class.ilClientNodeDAV.php.
References $name, and getRefIdFromName().
Referenced by getChild().
ilClientNodeDAV::getName | ( | ) |
Return name of client.
Implements Sabre\DAV\INode.
Definition at line 75 of file class.ilClientNodeDAV.php.
ilClientNodeDAV::getRefIdFromName | ( | $name | ) |
Gets ref_id from name.
Name should look like this: ref_<ref_id>
string | $name |
Definition at line 175 of file class.ilClientNodeDAV.php.
References $name, and checkIfRefIdIsValid().
Referenced by childExists(), and getMountPointByReference().
|
protected |
Creates and returns Repository Root Object.
Forbidden |
Definition at line 140 of file class.ilClientNodeDAV.php.
Referenced by getChild(), and getChildren().
ilClientNodeDAV::setName | ( | $name | ) |
Overwrite parent function to throw an exception if called.
It is not forbidden to rename the client over WebDAV
string | $name |
Forbidden |
Implements Sabre\DAV\INode.
Definition at line 54 of file class.ilClientNodeDAV.php.
|
protected |
Definition at line 33 of file class.ilClientNodeDAV.php.
|
protected |
Definition at line 30 of file class.ilClientNodeDAV.php.
Referenced by __construct().