|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilWebDAVRepositoryHelper. More...
Collaboration diagram for ilWebDAVRepositoryHelper:Public Member Functions | |
| __construct (ilAccessHandler $access, ilTree $tree) | |
| ilWebDAVRepositoryHelper constructor. More... | |
| deleteObject (int $a_ref_id) | |
| I stole this method of deleting objects from ilObjectGUI->confirmedDeleteObject() More... | |
| checkAccess (string $a_permission, int $a_ref_id) | |
| Just a redirect to the checkAccess method of ilAccess. More... | |
| checkCreateAccessForType (int $a_ref_id, string $a_type) | |
| Just a redirect to the checkAccess method of ilAccess to check for creation of certain obj types. More... | |
| objectWithRefIdExists (int $a_ref_id) | |
| Just a redirect to the ilObject::_exists. More... | |
| getObjectIdFromRefId (int $a_ref_id) | |
| Just a redirect to the ilObject::_lookupObjectId function. More... | |
| getObjectTitleFromObjId (int $a_obj_id, bool $escape_forbidden_fileextension=false) | |
| Just a redirect to the ilObject::_lookupTitle function. More... | |
| getFilenameWithSanitizedFileExtension (int $a_obj_id) | |
| Wraps the static call to ilObject::_lookupTitle. More... | |
| getObjectTypeFromObjId (int $a_obj_id) | |
| Just a redirect to the ilObject::_lookupType function. More... | |
| getObjectTitleFromRefId (int $a_ref_id, bool $escape_forbidden_fileextension=false) | |
| Just a shortcut and redirect to get a title from a given ref_id. More... | |
| getObjectTypeFromRefId (int $a_ref_id) | |
| Just a redirect to the ilObject::_lookupType function. More... | |
| getChildrenOfRefId (int $a_ref_id) | |
| Just a redirect to getChildIds of ilTree. More... | |
Protected Member Functions | |
| getRawObjectTitleFromObjId (int $a_obj_id) | |
| Wraps the static call to ilObject::_lookupTitle. More... | |
Protected Attributes | |
| $access | |
| $tree | |
Class ilWebDAVRepositoryHelper.
This is a helper class and mostly also a wrapper class for repository actions. It is used by ilObj*DAV objects and makes them more unit testable. This is really helpful since static calls like ilObject::_exists() are not mockable
Definition at line 12 of file class.ilWebDAVRepositoryHelper.php.
| ilWebDAVRepositoryHelper::__construct | ( | ilAccessHandler | $access, |
| ilTree | $tree | ||
| ) |
ilWebDAVRepositoryHelper constructor.
| ilAccessHandler | $access | |
| ilTree | $tree |
Definition at line 26 of file class.ilWebDAVRepositoryHelper.php.
| ilWebDAVRepositoryHelper::checkAccess | ( | string | $a_permission, |
| int | $a_ref_id | ||
| ) |
Just a redirect to the checkAccess method of ilAccess.
| $a_permission | |
| $a_ref_id |
Definition at line 52 of file class.ilWebDAVRepositoryHelper.php.
| ilWebDAVRepositoryHelper::checkCreateAccessForType | ( | int | $a_ref_id, |
| string | $a_type | ||
| ) |
Just a redirect to the checkAccess method of ilAccess to check for creation of certain obj types.
| int | $a_ref_id | |
| string | $a_type |
Definition at line 64 of file class.ilWebDAVRepositoryHelper.php.
| ilWebDAVRepositoryHelper::deleteObject | ( | int | $a_ref_id | ) |
I stole this method of deleting objects from ilObjectGUI->confirmedDeleteObject()
| $a_ref_id | ref_id of object to delete |
| ilRepositoryException |
Definition at line 38 of file class.ilWebDAVRepositoryHelper.php.
| ilWebDAVRepositoryHelper::getChildrenOfRefId | ( | int | $a_ref_id | ) |
Just a redirect to getChildIds of ilTree.
| $a_ref_id |
Definition at line 185 of file class.ilWebDAVRepositoryHelper.php.
| ilWebDAVRepositoryHelper::getFilenameWithSanitizedFileExtension | ( | int | $a_obj_id | ) |
Wraps the static call to ilObject::_lookupTitle.
This is on one hand necessary to create unit tests. And on the other hand, it guarantees the return of a string, which ilObject::_lookupTitle() doesn't.
| int | $a_obj_id |
| ilFileUtilsException |
Definition at line 115 of file class.ilWebDAVRepositoryHelper.php.
References Vendor\Package\$e, getRawObjectTitleFromObjId(), and ilFileUtils\getValidFilename().
Referenced by getObjectTitleFromObjId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWebDAVRepositoryHelper::getObjectIdFromRefId | ( | int | $a_ref_id | ) |
Just a redirect to the ilObject::_lookupObjectId function.
| $a_ref_id |
Definition at line 86 of file class.ilWebDAVRepositoryHelper.php.
References ilObject\_lookupObjectId().
Referenced by getObjectTitleFromRefId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWebDAVRepositoryHelper::getObjectTitleFromObjId | ( | int | $a_obj_id, |
| bool | $escape_forbidden_fileextension = false |
||
| ) |
Just a redirect to the ilObject::_lookupTitle function.
| $a_obj_id |
Definition at line 97 of file class.ilWebDAVRepositoryHelper.php.
References ilObject\_lookupType(), getFilenameWithSanitizedFileExtension(), and getRawObjectTitleFromObjId().
Referenced by getObjectTitleFromRefId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWebDAVRepositoryHelper::getObjectTitleFromRefId | ( | int | $a_ref_id, |
| bool | $escape_forbidden_fileextension = false |
||
| ) |
Just a shortcut and redirect to get a title from a given ref_id.
| $a_ref_id |
Definition at line 160 of file class.ilWebDAVRepositoryHelper.php.
References getObjectIdFromRefId(), and getObjectTitleFromObjId().
Here is the call graph for this function:| ilWebDAVRepositoryHelper::getObjectTypeFromObjId | ( | int | $a_obj_id | ) |
Just a redirect to the ilObject::_lookupType function.
| $a_ref_id |
Definition at line 147 of file class.ilWebDAVRepositoryHelper.php.
References $type, and ilObject\_lookupType().
Here is the call graph for this function:| ilWebDAVRepositoryHelper::getObjectTypeFromRefId | ( | int | $a_ref_id | ) |
Just a redirect to the ilObject::_lookupType function.
| $a_ref_id |
Definition at line 173 of file class.ilWebDAVRepositoryHelper.php.
References $type, and ilObject\_lookupType().
Here is the call graph for this function:
|
protected |
Wraps the static call to ilObject::_lookupTitle.
This is on one hand necessary to create unit tests. And on the other hand, it guarantees the return of a string, which ilObject::_lookupTitle() doesn't.
| int | $a_obj_id |
Definition at line 135 of file class.ilWebDAVRepositoryHelper.php.
References ilObject\_lookupTitle().
Referenced by getFilenameWithSanitizedFileExtension(), and getObjectTitleFromObjId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWebDAVRepositoryHelper::objectWithRefIdExists | ( | int | $a_ref_id | ) |
Just a redirect to the ilObject::_exists.
| $a_ref_id |
Definition at line 75 of file class.ilWebDAVRepositoryHelper.php.
References ilObject\_exists().
Here is the call graph for this function:
|
protected |
Definition at line 15 of file class.ilWebDAVRepositoryHelper.php.
Referenced by __construct().
|
protected |
Definition at line 18 of file class.ilWebDAVRepositoryHelper.php.
Referenced by __construct().