23        return $this->context_collection->
main()->repository();
 
   34        $access = 
$DIC->access();
 
   37        $additional_data = $called_contexts->
current()->getAdditionalData();
 
   38        if ($additional_data->is(self::SHOW_FOLDERS_TOOL, 
true)) {
 
   39            $iff = 
function ($id) {
 
   40                return $this->identification_provider->contextAwareIdentifier($id);
 
   42            $l = 
function (
string $content) {
 
   43                return $this->dic->ui()->factory()->legacy($content);
 
   45            $ref_id = $called_contexts->
current()->getReferenceId()->toInt();
 
   47            if (!$access->checkAccess(
"read", 
"", $ref_id)) {
 
   52            $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_fldm.svg"), $title);
 
   53            $tools[] = $this->factory->tool($iff(
"tree"))
 
   56                ->withContentWrapper(
function () use ($l, $ref_id) {
 
   57                    return $l($this->
getTree($ref_id));
 
   70    private function getTree(
int $ref_id) : string
 
   77            return $exp->getHTML(
true);
 
   78        } 
catch (Exception 
$e) {
 
An exception for terminatinating execution or to throw for unit testing.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)