40 include_once(
"./Services/Repository/classes/class.ilRepUtil.php");
42 $parent = $this->tree->getParentId($a_ref_id);
43 $repository_util->deleteObjects($parent, array($a_ref_id));
53 public function checkAccess(
string $a_permission,
int $a_ref_id) : bool
55 return $this->access->checkAccess($a_permission,
'', $a_ref_id);
67 return $this->access->checkAccess(
'create',
'', $a_ref_id, $a_type);
126 return is_string($escaped_title) ? $escaped_title :
'';
188 return $this->tree->getChildIds($a_ref_id);
getObjectTypeFromObjId(int $a_obj_id)
Just a redirect to the ilObject::_lookupType function.
Repository Utilities (application layer, put GUI related stuff into ilRepUtilGUI) ...
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
getFilenameWithSanitizedFileExtension(int $a_obj_id)
Wraps the static call to ilObject::_lookupTitle.
Class ilWebDAVRepositoryHelper.
static _lookupTitle($a_id)
lookup object title
getRawObjectTitleFromObjId(int $a_obj_id)
Wraps the static call to ilObject::_lookupTitle.
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...
static _lookupObjectId($a_ref_id)
lookup object id
Interface ilAccessHandler.
__construct(ilAccessHandler $access, ilTree $tree)
ilWebDAVRepositoryHelper constructor.
checkAccess(string $a_permission, int $a_ref_id)
Just a redirect to the checkAccess method of ilAccess.
getObjectTitleFromRefId(int $a_ref_id, bool $escape_forbidden_fileextension=false)
Just a shortcut and redirect to get a title from a given ref_id.
getObjectIdFromRefId(int $a_ref_id)
Just a redirect to the ilObject::_lookupObjectId function.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
static _lookupType($a_id, $a_reference=false)
lookup object type
getChildrenOfRefId(int $a_ref_id)
Just a redirect to getChildIds of ilTree.
objectWithRefIdExists(int $a_ref_id)
Just a redirect to the ilObject::_exists.
deleteObject(int $a_ref_id)
I stole this method of deleting objects from ilObjectGUI->confirmedDeleteObject() ...
getObjectTypeFromRefId(int $a_ref_id)
Just a redirect to the ilObject::_lookupType function.
getObjectTitleFromObjId(int $a_obj_id, bool $escape_forbidden_fileextension=false)
Just a redirect to the ilObject::_lookupTitle function.
static getValidFilename($a_filename)
Get valid filename.
Class to report exception.