3 require_once(
"./Services/Object/classes/class.ilObjectListGUI.php");
24 parent::__construct();
34 $this->static_link_enabled =
true;
35 $this->delete_enabled =
true;
36 $this->cut_enabled =
true;
37 $this->info_screen_enabled =
true;
38 $this->copy_enabled =
false;
39 $this->subscribe_enabled =
false;
40 $this->link_enabled =
false;
43 $this->gui_class_name =
"ilobjorgunitgui";
46 include_once(
'./Modules/OrgUnit/classes/class.ilObjOrgUnitAccess.php');
72 if ($this->std_cmd_only) {
75 $cmd_link = $this->ctrl->getLinkTargetByClass(
"ilinfoscreengui",
"showSummary");
88 $this->ctrl->setParameterByClass(
"ilobjorgunitgui",
"ref_id", $this->ref_id);
90 return $this->ctrl->getLinkTargetByClass(
"ilobjorgunitgui", $a_cmd);
97 $ilias = $DIC[
'ilias'];
99 if (!$ilias->getSetting(
'custom_icons')) {
100 parent::insertIconsAndCheckboxes();
104 $icons_cache = ilObjOrgUnit::getIconsCache();
105 if (isset($icons_cache[$this->obj_id])) {
108 if (!$this->default_command OR (!$this->
getCommandsStatus() AND !$this->restrict_to_goto)) {
110 $this->tpl->setCurrentBlock(
"icon_link_s");
112 if ($this->default_command[
"frame"] !=
"") {
113 $this->tpl->setVariable(
"ICON_TAR",
"target='" . $this->default_command[
"frame"] .
"'");
116 $this->tpl->setVariable(
"ICON_HREF", $this->default_command[
"link"]);
117 $this->tpl->parseCurrentBlock();
118 $this->tpl->touchBlock(
"icon_link_e");
123 $this->tpl->touchBlock(
"i_1");
124 $this->tpl->touchBlock(
"d_2");
126 $this->tpl->touchBlock(
"d_1");
129 parent::insertIconsAndCheckboxes();
130 $this->tpl->setCurrentBlock(
"icon");
132 $this->tpl->setVariable(
"SRC_ICON", $icon_file);
133 $this->tpl->parseCurrentBlock();
136 parent::insertIconsAndCheckboxes();
getContainerObject()
get container object
insertTimingsCommand()
no timing commands needed in orgunits.
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
insertIconsAndCheckboxes()
getCommandFrame($a_cmd)
Get command target frame.
static _getCommands()
get commands
insertCommonSocialCommands($a_header_actions=false)
no social commands needed in orgunits.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
insertInfoScreenCommand()
insert info screen command
getIconImageType()
Returns the icon image type.
Class ilObjOrgUnitListGUI.
enableIcon($a_status)
En/Dis-able icons.