3 require_once
"Services/Repository/classes/class.ilObjectPluginGUI.php";
4 require_once
"Modules/OrgUnit/classes/class.ilObjOrgUnit.php";
5 require_once
"Modules/OrgUnit/classes/class.ilOrgUnitExplorerGUI.php";
6 require_once(
"./Modules/OrgUnit/classes/Extension/class.ilOrgUnitExtension.php");
28 public function __construct($a_ref_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0) {
30 parent::__construct($a_ref_id, $a_id_type, $a_parent_node_id);
46 throw new ilPluginException(
"ilObjectPluginGUI: Could not instantiate plugin object for type " . $this->
getType() .
".");
66 $parent = parent::lookupParentTitleInCreationMode();
67 if ($parent ==
'__OrgUnitAdministration') {
68 return $this->lng->txt(
"objs_orgu");
96 if (
$row[
"title"] ==
"__OrgUnitAdministration") {
97 $row[
"title"] = $this->lng->txt(
"objs_orgu");
99 $this->ctrl->setParameterByClass(
"ilobjorgunitgui",
"ref_id",
$row[
"child"]);
100 $this->ilLocator->addItem(
$row[
"title"], $this->ctrl->getLinkTargetByClass(
array(
101 "iladministrationgui",
104 $this->ctrl->setParameterByClass(
"ilobjplugindispatchgui",
"ref_id",
$_GET[
"ref_id"]);
114 $this->ctrl->setParameterByClass(
"ilObjPluginDispatchGUI",
"ref_id",
$_GET[
"ref_id"]);
115 $this->ctrl->setParameterByClass(
"ilObjOrgUnitGUI",
"ref_id",
$_GET[
"ref_id"]);
118 if (!
$tree->handleCommand()) {
119 $this->tpl->setLeftNavContent(
$tree->getHTML());
128 $whiteList =
array(
"orgu");
129 $pls = ilOrgUnitExtension::getActivePluginIdsForTree();
131 return array_merge($whiteList, $pls);
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get plugin object.
showTree()
Views in the Org Unit have the Navigation Tree enabled by default.
lookupParentTitleInCreationMode()
getType()
Functions that must be overwritten.
static lookupNameForId($a_ctype, $a_cname, $a_slot_id, $a_plugin_id)
Lookup name for id.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Create styles array
The data for the language used.
Class ilOrgUnitExtensionGUI.
__construct($a_ref_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
ilOrgUnitExtensionGUI constructor.
setLocator()
Override the locator (breadcrumbs).
Class ilOrgUnitExplorerGUI.
getPlugin()
Get plugin object.
Class ilOrgUnitExtensionPlugin.