29 return $this->context_collection->
main()->administration();
39 if ($called_contexts->
current()->getAdditionalData()->is(self::SHOW_ORGU_TREE,
true)) {
40 $iff =
function (
string $id) {
41 return $this->identification_provider->contextAwareIdentifier($id);
44 $t =
function (
string $key) :
string {
45 return $this->dic->language()->txt($key);
48 $tools[] = $this->factory->treeTool($iff(
'tree_new'))
49 ->withTitle($t(
'tree'))
50 ->withSymbol($this->dic->ui()->factory()->symbol()->icon()->standard(
'orgu',
'Orgu'))
60 $lng = $DIC->language();
65 return $this->dic->ui()->factory()->tree()->expandable(
$lng->txt(
"org_units"), $tree)
66 ->withData($tree->getChildsOfNode($parent_node_id));
74 $tree->setPathOpen(
$_GET[
'item_ref_id'] ??
$_GET[
'ref_id'] ??
'');
75 $tree->setOrderField(
'title');
82 $whiteList = array(
'orgu');
83 $pls = ilOrgUnitExtension::getActivePluginIdsForTree();
85 return array_merge($whiteList, $pls);
This describes a Tree Control.
Interface for mapping data-structures to the Tree.