4include_once
"./Services/Object/classes/class.ilObjectGUI.php";
5include_once(
"./Services/COPage/Layout/classes/class.ilPageLayout.php");
51 function __construct($a_data,$a_id,$a_call_by_reference,$a_prepare_output =
true)
58 $this->ctrl =
$DIC->ctrl();
59 $this->lng =
$DIC->language();
60 $this->tabs =
$DIC->tabs();
62 parent::__construct($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
64 $this->lng->loadLanguageModule(
"style");
72 $next_class = $this->ctrl->getNextClass($this);
73 $cmd = $this->ctrl->getCmd();
75 if ($next_class ==
"" && in_array(
$cmd, array(
"view",
"")))
77 $this->ctrl->redirectByClass(
"ilSystemStyleMainGUI",
"");
82 case 'ilpermissiongui':
84 $this->tabs->activateTab(
"perm_settings");
85 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
87 $ret = $this->ctrl->forwardCommand($perm_gui);
90 case 'ilsystemstylemaingui':
92 $this->tabs->activateTab(
"system_styles");
93 include_once(
"./Services/Style/System/classes/class.ilSystemStyleMainGUI.php");
95 $this->ctrl->forwardCommand($gui);
98 case 'ilpagelayoutadministrationgui':
100 $this->tabs->activateTab(
"page_layouts");
101 include_once(
"./Services/COPage/Layout/classes/class.ilPageLayoutAdministrationGUI.php");
103 $this->ctrl->forwardCommand($gui);
106 case 'ilcontentstylesettingsgui':
107 include_once(
"./Services/Style/Content/classes/class.ilContentStyleSettingsGUI.php");
109 $this->ctrl->forwardCommand($gui);
110 if ($this->ctrl->getCmdClass() ==
"ilcontentstylesettingsgui")
112 $this->tabs->activateTab(
"content_styles");
158 global $rbacsystem,
$lng, $ilTabs;
160 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
162 $this->tabs_gui->addTab(
"system_styles", $this->lng->txt(
"system_styles"),
163 $this->ctrl->getLinkTargetByClass(
"ilsystemstylemaingui"));
165 $this->tabs_gui->addTab(
"content_styles", $this->lng->txt(
"content_styles"),
166 $this->ctrl->getLinkTargetByClass(
"ilcontentstylesettingsgui",
"edit"));
168 $this->tabs_gui->addTab(
"page_layouts", $this->lng->txt(
"page_layouts"),
169 $this->ctrl->getLinkTargetByClass(
"ilpagelayoutadministrationgui",
""));
172 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
174 $this->tabs_gui->addTab(
"perm_settings", $this->lng->txt(
"perm_settings"),
175 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"));
An exception for terminatinating execution or to throw for unit testing.
Settings UI class for system styles.
Style settings GUI class.
executeCommand()
Execute command.
getAdminTabs()
??? Save object
getTabs()
get tabs @access public
__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
Constructor.
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput($a_show_subobjects=true)
prepare output
Administration for page layouts.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Settings UI class for system styles.