3require_once
"Services/Repository/classes/class.ilObjectPluginGUI.php";
4require_once
"Modules/OrgUnit/classes/class.ilObjOrgUnit.php";
5require_once
"Modules/OrgUnit/classes/class.ilOrgUnitExplorerGUI.php";
6require_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);
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 getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get plugin object.
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...