3require_once(
"./Services/Object/classes/class.ilObjectListGUI.php");
33 $this->static_link_enabled =
true;
34 $this->delete_enabled =
true;
35 $this->cut_enabled =
true;
36 $this->info_screen_enabled =
true;
37 $this->copy_enabled =
false;
38 $this->subscribe_enabled =
false;
39 $this->link_enabled =
false;
40 $this->payment_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 if (!$ilias->getSetting(
'custom_icons')) {
98 parent::insertIconsAndCheckboxes();
102 $icons_cache = ilObjOrgUnit::getIconsCache();
103 if (isset($icons_cache[$this->obj_id])) {
106 if (!$this->default_command OR (!$this->
getCommandsStatus() AND !$this->restrict_to_goto)) {
108 $this->tpl->setCurrentBlock(
"icon_link_s");
110 if ($this->default_command[
"frame"] !=
"") {
111 $this->tpl->setVariable(
"ICON_TAR",
"target='" . $this->default_command[
"frame"] .
"'");
114 $this->tpl->setVariable(
"ICON_HREF", $this->default_command[
"link"]);
115 $this->tpl->parseCurrentBlock();
116 $this->tpl->touchBlock(
"icon_link_e");
121 $this->tpl->touchBlock(
"i_1");
122 $this->tpl->touchBlock(
"d_2");
124 $this->tpl->touchBlock(
"d_1");
127 parent::insertIconsAndCheckboxes();
128 $this->tpl->setCurrentBlock(
"icon");
129 $this->tpl->setVariable(
"ALT_ICON",
$lng->txt(
"icon") .
" " .
$lng->txt(
"obj_" . $this->getIconImageType()));
130 $this->tpl->setVariable(
"SRC_ICON", $icon_file);
131 $this->tpl->parseCurrentBlock();
134 parent::insertIconsAndCheckboxes();
_getCommands()
get commands
Class ilObjOrgUnitListGUI.
insertCommonSocialCommands()
no social commands needed in orgunits.
insertIconsAndCheckboxes()
Insert icons and checkboxes.
insertInfoScreenCommand()
insert info screen command
insertTimingsCommand()
no timing commands needed in orgunits.
getContainerObject()
get container object
getCommandFrame($a_cmd)
Get command target frame.
enableIcon($a_status)
En/Dis-able icons.
ilObjectListGUI()
constructor
insertCommand($a_href, $a_text, $a_frame="", $a_img="", $a_cmd="", $a_onclick="")
insert command button
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)