25 parent::__construct();
36 $this->static_link_enabled =
true;
37 $this->delete_enabled =
true;
38 $this->cut_enabled =
true;
39 $this->info_screen_enabled =
true;
40 $this->copy_enabled =
false;
41 $this->subscribe_enabled =
false;
42 $this->link_enabled =
false;
45 $this->gui_class_name =
"ilobjorgunitgui";
75 if ($this->std_cmd_only) {
78 $cmd_link = $this->ctrl->getLinkTargetByClass(
"ilinfoscreengui",
"showSummary");
92 $this->ctrl->setParameterByClass(
"ilobjorgunitgui",
"ref_id", $this->ref_id);
94 return $this->ctrl->getLinkTargetByClass(
"ilobjorgunitgui", $a_cmd);
102 $ilias = $DIC[
'ilias'];
104 if (!$ilias->getSetting(
'custom_icons')) {
105 parent::insertIconsAndCheckboxes();
109 $icons_cache = ilObjOrgUnit::getIconsCache();
110 if (isset($icons_cache[$this->obj_id])) {
113 if (!$this->default_command or (!$this->
getCommandsStatus() and !$this->restrict_to_goto)) {
115 $this->tpl->setCurrentBlock(
"icon_link_s");
117 if ($this->default_command[
"frame"] !=
"") {
118 $this->tpl->setVariable(
"ICON_TAR",
"target='" . $this->default_command[
"frame"] .
"'");
121 $this->tpl->setVariable(
"ICON_HREF", $this->default_command[
"link"]);
122 $this->tpl->parseCurrentBlock();
123 $this->tpl->touchBlock(
"icon_link_e");
127 $this->tpl->touchBlock(
"i_1");
128 $this->tpl->touchBlock(
"d_2");
130 $this->tpl->touchBlock(
"d_1");
133 parent::insertIconsAndCheckboxes();
134 $this->tpl->setCurrentBlock(
"icon");
136 $this->tpl->setVariable(
"SRC_ICON", $icon_file);
137 $this->tpl->parseCurrentBlock();
140 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.