|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilClientNodeDAV. More...
Inheritance diagram for ilClientNodeDAV:
Collaboration diagram for ilClientNodeDAV: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 | |
| $dav_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
\DAV\ICollection
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 41 of file class.ilClientNodeDAV.php.
References $dav_helper, $DIC, and $repo_helper.
|
protected |
Check if object with ref_id exists and if is DAVable object.
| $ref_id |
Definition at line 195 of file class.ilClientNodeDAV.php.
Referenced by getRefIdFromName().
Here is the caller graph for this function:| 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
Definition at line 159 of file class.ilClientNodeDAV.php.
References $name, and getRefIdFromName().
Here is the call graph for this function:| ilClientNodeDAV::createDirectory | ( | $name | ) |
It is not allowed to create a directory here.
| string | $name |
| Forbidden |
Definition at line 210 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 |
Definition at line 233 of file class.ilClientNodeDAV.php.
| ilClientNodeDAV::delete | ( | ) |
It is not allowed to delete anything here.
| Forbidden |
Definition at line 220 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 |
Definition at line 106 of file class.ilClientNodeDAV.php.
References $name, getMountPointByReference(), and getRepositoryRootPoint().
Here is the call graph for this function:| ilClientNodeDAV::getChildren | ( | ) |
Returns Repository Root Object.
Array is needed since a list of all children is expected.
| Forbidden |
Definition at line 68 of file class.ilClientNodeDAV.php.
References getRepositoryRootPoint().
Here is the call graph for this function:| ilClientNodeDAV::getLastModified | ( | ) |
Returns some date as return for last modified.
Definition at line 88 of file class.ilClientNodeDAV.php.
|
protected |
Create DAV-Object from ref_id.
| string | $name |
| Forbidden | |
| BadRequest |
Definition at line 123 of file class.ilClientNodeDAV.php.
References $name, and getRefIdFromName().
Referenced by getChild().
Here is the call graph for this function:
Here is the caller graph for this function:| ilClientNodeDAV::getName | ( | ) |
Return name of client.
Definition at line 78 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 178 of file class.ilClientNodeDAV.php.
References $name, and checkIfRefIdIsValid().
Referenced by childExists(), and getMountPointByReference().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Creates and returns Repository Root Object.
| Forbidden |
Definition at line 143 of file class.ilClientNodeDAV.php.
References ROOT_FOLDER_ID.
Referenced by getChild(), and getChildren().
Here is the caller graph for this function:| 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 |
Definition at line 57 of file class.ilClientNodeDAV.php.
|
protected |
Definition at line 33 of file class.ilClientNodeDAV.php.
Referenced by __construct().
|
protected |
Definition at line 36 of file class.ilClientNodeDAV.php.
|
protected |
Definition at line 30 of file class.ilClientNodeDAV.php.
Referenced by __construct().