24 public function __construct($a_ref_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
45 throw new ilPluginException(
"ilObjectPluginGUI: Could not instantiate plugin object for type " . $this->
getType() .
".");
67 $parent = parent::lookupParentTitleInCreationMode();
68 if ($parent ==
'__OrgUnitAdministration') {
69 return $this->lng->txt(
"objs_orgu");
100 foreach ((array) $path as $key => $row) {
101 if ($row[
"title"] ==
"__OrgUnitAdministration") {
102 $row[
"title"] = $this->lng->txt(
"objs_orgu");
104 $this->ctrl->setParameterByClass(
"ilobjorgunitgui",
"ref_id", $row[
"child"]);
105 $this->ilLocator->addItem($row[
"title"], $this->ctrl->getLinkTargetByClass(array(
106 "iladministrationgui",
109 $this->ctrl->setParameterByClass(
"ilobjplugindispatchgui",
"ref_id",
$_GET[
"ref_id"]);
120 $this->ctrl->setParameterByClass(
"ilObjPluginDispatchGUI",
"ref_id",
$_GET[
"ref_id"]);
121 $this->ctrl->setParameterByClass(
"ilObjOrgUnitGUI",
"ref_id",
$_GET[
"ref_id"]);
124 if (!
$tree->handleCommand()) {
125 $this->tpl->setLeftNavContent(
$tree->getHTML());
135 $whiteList = array(
"orgu");
136 $pls = ilOrgUnitExtension::getActivePluginIdsForTree();
138 return array_merge($whiteList, $pls);
An exception for terminatinating execution or to throw for unit testing.
getType()
Functions that must be overwritten.
getCreationMode()
get creation mode
Class ilOrgUnitExplorerGUI.
Class ilOrgUnitExtensionGUI.
setLocator()
Override the locator (breadcrumbs).
getPlugin()
Get plugin object.
__construct($a_ref_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
ilOrgUnitExtensionGUI constructor.
showTree()
Views in the Org Unit have the Navigation Tree enabled by default.
lookupParentTitleInCreationMode()
Class ilOrgUnitExtensionPlugin.
static lookupNameForId(string $a_ctype, string $a_cname, string $a_slot_id, string $a_plugin_id)
static getPluginObject(string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname)
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc