33 return $this->context_collection->
main()->repository();
40 $access = $DIC->access();
43 $additional_data = $called_contexts->
current()->getAdditionalData();
44 if ($additional_data->is(self::SHOW_FOLDERS_TOOL,
true)) {
45 $iff =
function (
$id) {
46 return $this->identification_provider->contextAwareIdentifier(
$id);
48 $l =
function (
string $content) {
49 return $this->dic->ui()->factory()->legacy($content);
53 if (!$access->checkAccess(
"read",
"",
$ref_id)) {
58 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"icon_fldm.svg"), $title);
59 $tools[] = $this->factory->tool($iff(
"tree"))
62 ->withContentWrapper(
function () use ($l,
$ref_id) {
63 return $l($this->getTree(
$ref_id));
71 private function getTree(
int $ref_id):
string 79 return $exp->getHTML(
true);
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins