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);
An exception for terminatinating execution or to throw for unit testing.
Class to report exception.
static getValidFilename($a_filename)
Get valid filename.
static _lookupTitle($a_id)
lookup object title
static _lookupObjectId($a_ref_id)
lookup object id
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data@access public
static _lookupType($a_id, $a_reference=false)
lookup object type
Repository Utilities (application layer, put GUI related stuff into ilRepUtilGUI)
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Class ilWebDAVRepositoryHelper.
getRawObjectTitleFromObjId(int $a_obj_id)
Wraps the static call to ilObject::_lookupTitle.
objectWithRefIdExists(int $a_ref_id)
Just a redirect to the ilObject::_exists.
getObjectTypeFromObjId(int $a_obj_id)
Just a redirect to the ilObject::_lookupType function.
getObjectIdFromRefId(int $a_ref_id)
Just a redirect to the ilObject::_lookupObjectId function.
deleteObject(int $a_ref_id)
I stole this method of deleting objects from ilObjectGUI->confirmedDeleteObject()
getChildrenOfRefId(int $a_ref_id)
Just a redirect to getChildIds of ilTree.
__construct(ilAccessHandler $access, ilTree $tree)
ilWebDAVRepositoryHelper constructor.
getObjectTitleFromObjId(int $a_obj_id, bool $escape_forbidden_fileextension=false)
Just a redirect to the ilObject::_lookupTitle function.
getObjectTitleFromRefId(int $a_ref_id, bool $escape_forbidden_fileextension=false)
Just a shortcut and redirect to get a title from a given ref_id.
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.
getFilenameWithSanitizedFileExtension(int $a_obj_id)
Wraps the static call to ilObject::_lookupTitle.
checkAccess(string $a_permission, int $a_ref_id)
Just a redirect to the checkAccess method of ilAccess.
getObjectTypeFromRefId(int $a_ref_id)
Just a redirect to the ilObject::_lookupType function.
Interface ilAccessHandler.