ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilWebDAVUriPathResolver. More...
Public Member Functions | |
__construct (ilWebDAVRepositoryHelper $repo_helper) | |
ilWebDAVUriPathResolver constructor. More... | |
getRefIdForWebDAVPath (string $a_uri) | |
Returns the ref_id of the given webdav path. More... | |
Protected Member Functions | |
getRefIdFromPathInRepositoryMount (string $path_inside_of_mountpoint) | |
Gets the ref_id from a searched object in the repository. More... | |
getRefIdFromPathInRefMount (string $repository_mountpoint, string $path_inside_of_mountpoint) | |
Gets the ref_id from a searched object in the repository. More... | |
getRefIdFromGivenParentRefAndTitlePath (int $a_parent_ref, array $a_current_path_array) | |
Searches an object inside the given path, starting at the given reference id. More... | |
getChildRefIdByGivenTitle (int $a_parent_ref_id, string $a_searched_title) | |
Searches for a an object with a specific title inside an other object (identified by ref_id) More... | |
Protected Attributes | |
$repo_helper | |
Class ilWebDAVUriPathResolver.
This class resolves given WebDAV-Uris and returns the reference id of the searched object.
Definition at line 11 of file class.ilWebDAVUriPathResolver.php.
ilWebDAVUriPathResolver::__construct | ( | ilWebDAVRepositoryHelper | $repo_helper | ) |
ilWebDAVUriPathResolver constructor.
ilWebDAVRepositoryHelper | $repo_helper |
Definition at line 21 of file class.ilWebDAVUriPathResolver.php.
References $repo_helper.
|
protected |
Searches for a an object with a specific title inside an other object (identified by ref_id)
Note: This check is case sensitive, since URIS SHOULD BE case sensitive
int | $a_parent_ref_id | |
string | $a_searched_title |
Definition at line 174 of file class.ilWebDAVUriPathResolver.php.
Referenced by getRefIdFromGivenParentRefAndTitlePath().
ilWebDAVUriPathResolver::getRefIdForWebDAVPath | ( | string | $a_uri | ) |
Returns the ref_id of the given webdav path.
Path starts without php-script
Examples
Path starts at a ref: <client_name>/ref_<ref_id>/folder1/folder2 Path starts at root: <client_name>/ILIAS/foo_container1/course1
Note: This URI is handled case sensitive, since URIS SHOULD BE case sensitive
$a_uri |
Definition at line 41 of file class.ilWebDAVUriPathResolver.php.
References getRefIdFromPathInRefMount(), and getRefIdFromPathInRepositoryMount().
|
protected |
Searches an object inside the given path, starting at the given reference id.
The return value is the ref_id of the last object in the given path.
int | $a_parent_ref | |
array | $a_current_path_array |
Definition at line 138 of file class.ilWebDAVUriPathResolver.php.
References getChildRefIdByGivenTitle().
Referenced by getRefIdFromPathInRefMount(), and getRefIdFromPathInRepositoryMount().
|
protected |
Gets the ref_id from a searched object in the repository.
The string $repository_mountpoint indicates, on which object the search should start. It has a format of "ref_<id>", where <id> is the actual reference id of an object.
The string $path_inside_of_mountpoint is the title path (a path made out of object titles), with which the object will be searched. It could look like following: "groupXYZ/folder123/file.txt"
string | $repository_mountpoint | |
string | $path_inside_of_mountpoint |
Definition at line 108 of file class.ilWebDAVUriPathResolver.php.
References getRefIdFromGivenParentRefAndTitlePath().
Referenced by getRefIdForWebDAVPath().
|
protected |
Gets the ref_id from a searched object in the repository.
The search starts at the root node of the ILIAS-Repository, which is defined with the constant ROOT_FOLDER_ID
The string $path_inside_of_mountpoint is the title path (a path made out of object titles), with which the object will be searched. It could look like following: "groupXYZ/folder123/file.txt"
$path_inside_of_mountpoint |
Definition at line 85 of file class.ilWebDAVUriPathResolver.php.
References getRefIdFromGivenParentRefAndTitlePath().
Referenced by getRefIdForWebDAVPath().
|
protected |
Definition at line 14 of file class.ilWebDAVUriPathResolver.php.
Referenced by __construct().