4include_once
"./Services/Object/classes/class.ilObjectGUI.php";
5include_once(
"./Services/Style/classes/class.ilPageLayout.php");
34 if (
$cmd ==
"editPg") {
35 $this->peditor_active =
true;
38 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
40 $lng->loadLanguageModule(
"style");
48 $next_class = $this->ctrl->getNextClass($this);
49 $cmd = $this->ctrl->getCmd();
51 if ($next_class ==
"ilpagelayoutgui" ||
$cmd ==
"createPg") {
52 $this->peditor_active =
true;
59 case 'ilpermissiongui':
60 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
62 $ret =& $this->ctrl->forwardCommand($perm_gui);
65 case 'ilpagelayoutgui':
66 include_once(
"./Services/Style/classes/class.ilPageLayoutGUI.php");
67 $this->tpl->getStandardTemplate();
68 $this->ctrl->setReturn($this,
"edit");
69 if ($this->pg_id!=
null) {
74 $layout_gui->setTabs();
75 $layout_gui->setEditPreview(
true);
76 $this->ctrl->saveParameter($this,
"obj_id");
77 $ret =& $this->ctrl->forwardCommand($layout_gui);
78 $this->tpl->setContent(
$ret);
84 $cmd =
"editSystemStyles";
102 $newObj = parent::saveObject();
119 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
121 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
125 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
126 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
128 $from_styles = $to_styles =
$data = array();
129 $styles = $this->
object->getStyles();
130 foreach($styles as
$style)
147 if ($fixed_style <= 0)
150 array(
"title" => $this->lng->txt(
"sty_individual_styles"),
152 $from_styles[-1] = $this->lng->txt(
"sty_individual_styles");
156 if ($default_style <= 0 && $fixed_style <= 0)
159 array(
"title" => $this->lng->txt(
"sty_default_style"),
161 $from_styles[0] = $this->lng->txt(
"sty_default_style");
162 $to_styles[0] = $this->lng->txt(
"sty_default_style");
165 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
167 $ilToolbar->addButton(
$lng->txt(
"sty_add_content_style"),
168 $ilCtrl->getLinkTarget($this,
"createStyle"));
169 $ilToolbar->addSeparator();
170 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
174 $si->setOptions($from_styles);
175 $ilToolbar->addInputItem(
$si,
true);
179 $si->setOptions($to_styles);
180 $ilToolbar->addInputItem(
$si,
true);
181 $ilToolbar->addFormButton(
$lng->txt(
"sty_move_style"),
"moveLMStyles");
183 $ilToolbar->setFormAction(
$ilCtrl->getFormAction($this));
186 include_once(
"./Services/Style/classes/class.ilContentStylesTableGUI.php");
188 $tpl->setContent($table->getHTML());
197 if (
$_POST[
"from_style"] == -1)
203 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
205 $this->ctrl->redirect($this,
"editContentStyles");
214 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
216 $this->ctrl->redirect($this,
"editContentStyles");
226 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
228 $ilCtrl->setParameter($this,
"to_style",
$_POST[
"to_style"]);
231 $cgui->setFormAction(
$ilCtrl->getFormAction($this));
232 $cgui->setHeaderText(
$lng->txt(
"sty_confirm_del_ind_styles").
": ".
233 sprintf($this->lng->txt(
"sty_confirm_del_ind_styles_desc"),
235 $cgui->setCancel(
$lng->txt(
"cancel"),
"editContentStyles");
236 $cgui->setConfirm(
$lng->txt(
"ok"),
"moveIndividualStyles");
237 $tpl->setContent($cgui->getHTML());
247 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
249 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
255 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
257 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
268 $ilToolbar->addInputItem(
$si,
true);
273 $ilToolbar->addInputItem(
$si,
true);
274 $ilToolbar->addFormButton(
$lng->txt(
"sty_move_style"),
"moveUserStyles");
276 $ilToolbar->setFormAction(
$ilCtrl->getFormAction($this));
279 include_once(
"./Services/Style/classes/class.ilSystemStylesTableGUI.php");
291 global $styleDefinition,
$ilCtrl;
294 if (count(
$_POST[
"st_act"]) < 1)
296 $this->
ilias->raiseError($this->lng->txt(
"at_least_one_style"), $this->ilias->error_obj->MESSAGE);
300 if (
$_POST[
"default_skin_style"] !=
"")
302 $sknst = explode(
":",
$_POST[
"default_skin_style"]);
304 if ($this->
ilias->ini->readVariable(
"layout",
"style") != $sknst[1] ||
305 $this->ilias->ini->readVariable(
"layout",
"skin") != $sknst[0])
307 $this->
ilias->ini->setVariable(
"layout",
"skin", $sknst[0]);
308 $this->
ilias->ini->setVariable(
"layout",
"style",$sknst[1]);
310 $this->
ilias->ini->write();
316 foreach ($all_styles as $st)
318 if (!isset(
$_POST[
"st_act"][$st[
"id"]]))
322 $this->
ilias->raiseError($this->lng->txt(
"cant_deactivate_if_users_assigned"), $this->ilias->error_obj->MESSAGE);
336 $ilCtrl->redirect($this ,
"editSystemStyles");
349 $to = explode(
":",
$_POST[
"to_style"]);
351 if (
$_POST[
"from_style"] !=
"other")
353 $from = explode(
":",
$_POST[
"from_style"]);
363 foreach($all_user_styles as
$style)
365 if (!in_array(
$style, $all_styles))
367 $style_arr = explode(
":",
$style);
374 $ilCtrl->redirect($this ,
"editSystemStyles");
388 $this->
ilias->raiseError($this->lng->txt(
"no_checkbox"),$this->ilias->error_obj->MESSAGE);
392 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
394 $cgui->setFormAction($this->ctrl->getFormAction($this));
395 $cgui->setHeaderText($this->lng->txt(
"info_delete_sure"));
396 $cgui->setCancel($this->lng->txt(
"cancel"),
"cancelDelete");
397 $cgui->setConfirm($this->lng->txt(
"confirm"),
"confirmedDelete");
399 foreach (
$_POST[
"id"] as $id)
402 " ".ilObject::_lookupTitle($id);
404 $cgui->addItem(
"id[]", $id, $caption);
407 $this->tpl->setContent($cgui->getHTML());
418 foreach(
$_POST[
"id"] as $id)
420 $this->
object->removeStyle($id);
421 $style_obj =&
$ilias->obj_factory->getInstanceByObjId($id);
422 $style_obj->delete();
424 $this->
object->update();
427 $this->ctrl->getLinkTarget($this,
"editContentStyles",
"",
false,
false)));
441 $def_style =
$ilSetting->get(
"default_content_style_id");
443 if ($def_style !=
$_GET[
"id"])
449 $ilSetting->delete(
"default_content_style_id");
453 ilUtil::redirect($this->ctrl->getLinkTarget($this,
"editContentStyles",
"",
false,
false));
465 $ilSetting->delete(
"default_content_style_id");
466 $fixed_style =
$ilSetting->get(
"fixed_content_style_id");
467 if ($fixed_style == (
int)
$_GET[
"id"])
477 ilUtil::redirect($this->ctrl->getLinkTarget($this,
"editContentStyles",
"",
false,
false));
486 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
487 $styles = $this->
object->getStyles();
488 foreach($styles as
$style)
499 ilUtil::redirect($this->ctrl->getLinkTarget($this,
"editContentStyles",
"",
false,
false));
512 $this->tpl->setCurrentBlock(
"tbl_action_btn");
513 $this->tpl->setVariable(
"BTN_NAME",
"deleteStyle");
514 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt(
"delete"));
515 $this->tpl->parseCurrentBlock();
518 $this->tpl->setCurrentBlock(
"tbl_action_btn");
519 $this->tpl->setVariable(
"BTN_NAME",
"toggleGlobalDefault");
520 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt(
"toggleGlobalDefault"));
521 $this->tpl->parseCurrentBlock();
524 $this->tpl->setCurrentBlock(
"tbl_action_btn");
525 $this->tpl->setVariable(
"BTN_NAME",
"toggleGlobalFixed");
526 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt(
"toggleGlobalFixed"));
527 $this->tpl->parseCurrentBlock();
530 $this->tpl->setCurrentBlock(
"tbl_action_btn");
531 $this->tpl->setVariable(
"BTN_NAME",
"setScope");
532 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt(
"sty_set_scope"));
533 $this->tpl->parseCurrentBlock();
536 $this->tpl->setCurrentBlock(
"tbl_action_btn");
537 $this->tpl->setVariable(
"BTN_NAME",
"saveActiveStyles");
538 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt(
"sty_save_active_styles"));
539 $this->tpl->parseCurrentBlock();
541 if ($with_subobjects ===
true)
546 $this->tpl->setCurrentBlock(
"tbl_action_row");
548 $this->tpl->parseCurrentBlock();
559 $this->ctrl->redirect($this,
"editContentStyles");
573 $ilCtrl->saveParameter($this,
"id");
574 include_once(
"./Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php");
576 $this,
"saveScope",
"cat");
577 $exp->setTypeWhiteList(array(
"root",
"cat"));
578 if (!$exp->handleCommand())
580 $tpl->setContent($exp->getHTML());
591 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
600 ilUtil::redirect($this->ctrl->getLinkTarget($this,
"editContentStyles",
"",
false,
false));
611 $ilTabs->setTabActive(
'page_layouts');
614 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
616 $ilToolbar->addButton(
$lng->txt(
"sty_add_pgl"),
617 $ilCtrl->getLinkTarget($this,
"addPageLayout"));
618 $ilToolbar->addButton(
$lng->txt(
"sty_import_page_layout"),
619 $ilCtrl->getLinkTarget($this,
"importPageLayoutForm"));
622 $oa_tpl =
new ilTemplate(
"tpl.stys_pglayout.html",
true,
true,
"Services/Style");
624 include_once(
"./Services/Style/classes/class.ilPageLayoutTableGUI.php");
626 $oa_tpl->setVariable(
"PGLAYOUT_TABLE", $pglayout_table->getHTML());
627 $tpl->setContent($oa_tpl->get());
633 if (!isset(
$_POST[
"pglayout"]))
638 foreach (
$_POST[
"pglayout"] as $item)
641 $pg_layout->activate($a_activate);
644 $this->ctrl->redirect($this,
"viewPageLayouts");
660 if(!isset(
$_POST[
"pglayout"]))
662 $this->
ilias->raiseError($this->lng->txt(
"no_checkbox"),$this->ilias->error_obj->MESSAGE);
665 $ilTabs->setTabActive(
'page_layouts');
669 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
671 $cgui->setFormAction($this->ctrl->getFormAction($this));
672 $cgui->setHeaderText($this->lng->txt(
"info_delete_sure"));
673 $cgui->setCancel($this->lng->txt(
"cancel"),
"cancelDeletePg");
674 $cgui->setConfirm($this->lng->txt(
"confirm"),
"confirmedDeletePg");
676 foreach(
$_POST[
"pglayout"] as $id)
679 $pg_obj->readObject();
682 " ".$pg_obj->getTitle();
684 $cgui->addItem(
"pglayout[]", $id, $caption);
687 $this->tpl->setContent($cgui->getHTML());
696 $this->ctrl->redirect($this,
"viewPageLayouts");
704 foreach (
$_POST[
"pglayout"] as $id)
710 $this->ctrl->redirect($this,
"viewPageLayouts");
717 $ilTabs->setTabActive(
'page_layouts');
724 $this->tpl->setContent($a_form->getHTML());
731 $lng->loadLanguageModule(
"content");
733 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
735 $form_gui->setFormAction(
$ilCtrl->getFormAction($this));
736 $form_gui->setTitle(
$lng->txt(
"sty_create_pgl"));
739 $title_input->setSize(50);
740 $title_input->setMaxLength(128);
741 $title_input->setValue($this->layout_object->title);
742 $title_input->setTitle(
$lng->txt(
"title"));
743 $title_input->setRequired(
true);
746 $desc_input->setValue($this->layout_object->description);
747 $desc_input->setRows(3);
748 $desc_input->setCols(37);
752 "0" =>
$lng->txt(
"cont_layout_template"),
753 "1" =>
$lng->txt(
"cont_special_page"),
764 $mods->addOption($mod);
771 foreach ($arr_templates1 as $v)
773 $arr_templates[] = $v;
779 foreach ($arr_templates as $templ) {
780 $templ->readObject();
781 $key = $templ->getId();
782 $value = $templ->getTitle();
787 $ttype_input->setValue(-1);
788 $ttype_input->setRequired(
true);
790 $desc_input->setTitle(
$lng->txt(
"description"));
791 $desc_input->setRequired(
false);
793 $form_gui->addItem($title_input);
794 $form_gui->addItem($desc_input);
795 $form_gui->addItem(
$si);
796 $form_gui->addItem($mods);
797 $form_gui->addItem($ttype_input);
800 $form_gui->addCommandButton(
"createPg",
$lng->txt(
"save"));
801 $form_gui->addCommandButton(
"cancelCreate",
$lng->txt(
"cancel"));
812 if(!$form_gui->checkInput())
814 $form_gui->setValuesByPost();
820 $pg_object->setTitle($form_gui->getInput(
'pgl_title'));
821 $pg_object->setDescription($form_gui->getInput(
'pgl_desc'));
822 $pg_object->setSpecialPage($form_gui->getInput(
'special_page'));
823 $pg_object->setModules($form_gui->getInput(
'module'));
824 $pg_object->update();
826 include_once(
"./Services/Style/classes/class.ilPageLayoutPage.php");
829 if(!is_object($pg_content))
834 $this->pg_content->setId($pg_object->getId());
836 $tmpl = $form_gui->getInput(
'pgl_template');
840 $this->pg_content->setXMLContent($layout_obj->getXMLContent());
841 $this->pg_content->create(
false);
845 $this->pg_content->create(
false);
848 $ilCtrl->setParameterByClass(
"ilpagelayoutgui",
"obj_id", $pg_object->getId());
849 $ilCtrl->redirectByClass(
"ilpagelayoutgui",
"edit");
860 if (!$rbacsystem->checkAccess(
"write",$this->object->getRefId()))
862 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
865 $ilCtrl->setCmdClass(
"ilpagelayoutgui");
873 echo
"settings_setTabs";
888 global $rbacsystem,
$lng, $ilTabs;
890 if ($this->peditor_active) {
891 $tabs_gui->setBackTarget($this->lng->txt(
"page_layouts"),
892 $this->ctrl->getLinkTarget($this,
"viewPageLayouts"));
895 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()) && !$this->peditor_active)
897 $tabs_gui->addTarget(
"system_styles",
898 $this->ctrl->getLinkTarget($this,
"editSystemStyles"), array(
"editSystemStyles",
"",
"view"),
"",
"");
900 $tabs_gui->addTarget(
"content_styles",
901 $this->ctrl->getLinkTarget($this,
"editContentStyles"),
"editContentStyles",
"",
"");
903 $tabs_gui->addTarget(
"page_layouts",
904 $this->ctrl->getLinkTarget($this,
"viewPageLayouts"),
"viewPageLayouts",
"",
"");
909 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()) && !$this->peditor_active)
911 $tabs_gui->addTarget(
"perm_settings",
912 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
923 $ilCtrl->setParameter($this,
"new_type",
"sty");
924 $ilCtrl->redirect($this,
"create");
934 include_once(
"./Services/Style/classes/class.ilPageLayout.php");
936 if (is_array(
$_POST[
"type"]))
938 foreach(
$_POST[
"type"] as $id =>
$t)
944 $l->setSpecialPage(
$t);
945 if(is_array(
$_POST[
"module"][$id]))
947 $l->setModules(array_keys(
$_POST[
"module"][$id]));
960 $ilCtrl->redirect($this,
"viewPageLayouts");
969 include_once(
"./Services/Export/classes/class.ilExport.php");
975 $succ = $exp->exportEntity(
"pgtp", (
int)
$_GET[
"layout_id"],
"4.2.0",
976 "Services/COPage",
"Title", $tmpdir);
978 if ($succ[
"success"])
981 "",
false,
false,
false);
983 if (is_file($succ[
"directory"].
"/".$succ[
"file"]))
985 unlink($succ[
"directory"].
"/".$succ[
"file"]);
987 if (is_dir($succ[
"directory"]))
989 unlink($succ[
"directory"]);
998 global
$tpl, $ilTabs;
1000 $ilTabs->setTabActive(
'page_layouts');
1002 $tpl->setContent($form->getHTML());
1012 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1017 $fi->setSuffixes(array(
"zip"));
1018 $fi->setRequired(
true);
1019 $form->addItem($fi);
1021 $form->addCommandButton(
"importPageLayout",
$lng->txt(
"import"));
1022 $form->addCommandButton(
"viewPageLayouts",
$lng->txt(
"cancel"));
1024 $form->setTitle(
$lng->txt(
"sty_import_page_layout"));
1025 $form->setFormAction(
$ilCtrl->getFormAction($this));
1038 if ($form->checkInput())
1040 include_once(
"./Services/Style/classes/class.ilPageLayout.php");
1046 $ilCtrl->redirect($this,
"viewPageLayouts");
1050 $ilTabs->setTabActive(
'page_layouts');
1051 $form->setValuesByPost();
1052 $tpl->setContent($form->getHtml());
1066 $ilCtrl->setParameter($this,
"style_id", urlencode(
$_GET[
"style_id"]));
1068 if (!$rbacsystem->checkAccess(
"write", $this->object->getRefId()))
1074 $sel_style = $all_styles[
$_GET[
"style_id"]];
1077 if (is_array($sel_style[
"substyle"]))
1079 foreach ($sel_style[
"substyle"] as $subst)
1081 $options[$subst[
"id"]] = $subst[
"name"];
1086 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
1089 $ilToolbar->addInputItem(
$si,
true);
1091 $ilToolbar->addFormButton(
$lng->txt(
"sty_add_assignment"),
"addStyleCatAssignment");
1092 $ilToolbar->setFormAction(
$ilCtrl->getFormAction($this));
1094 include_once(
"./Services/Style/classes/class.ilSysStyleCatAssignmentTableGUI.php");
1111 if (!$rbacsystem->checkAccess(
"write", $this->object->getRefId()))
1116 $ilCtrl->setParameter($this,
"style_id", urlencode(
$_GET[
"style_id"]));
1117 $ilCtrl->setParameter($this,
"substyle", urlencode(
$_REQUEST[
"substyle"]));
1119 include_once
'Services/Search/classes/class.ilSearchRootSelector.php';
1121 $ilCtrl->getLinkTarget($this,
'addStyleCatAssignment'));
1122 $exp->setExpand(
$_GET[
"search_root_expand"] ?
$_GET[
"search_root_expand"] :
$tree->readRootId());
1123 $exp->setExpandTarget(
$ilCtrl->getLinkTarget($this,
'addStyleCatAssignment'));
1124 $exp->setTargetClass(get_class($this));
1125 $exp->setCmd(
'saveStyleCatAssignment');
1126 $exp->setClickableTypes(array(
"cat"));
1130 $tpl->setContent($exp->getOutput());
1144 if (!$rbacsystem->checkAccess(
"write", $this->object->getRefId()))
1149 $ilCtrl->setParameter($this,
"style_id", urlencode(
$_GET[
"style_id"]));
1151 $style_arr = explode(
":",
$_GET[
"style_id"]);
1156 $ilCtrl->redirect($this,
"assignStylesToCats");
1166 if (!$rbacsystem->checkAccess(
"write", $this->object->getRefId()))
1171 $ilCtrl->setParameter($this,
"style_id", urlencode(
$_GET[
"style_id"]));
1172 $style_arr = explode(
":",
$_GET[
"style_id"]);
1173 if (is_array(
$_POST[
"id"]))
1175 foreach (
$_POST[
"id"] as $id)
1177 $id_arr = explode(
":", $id);
1179 $id_arr[0], $id_arr[1]);
1184 $ilCtrl->redirect($this,
"assignStylesToCats");
This class represents an option in a checkbox group.
Confirmation screen class.
_moveLMStyles($a_from_style, $a_to_style)
move learning modules from one style to another
_getNrOfAssignedLMs($a_style_id)
gets the number of learning modules assigned to a content style
_getNrLMsNoStyle()
get number of learning modules assigned no style
_getNrLMsIndividualStyles()
get number of learning modules with individual styles
Style settings GUI class.
createStyleObject()
Create new style.
cancelDeletePgObject()
cancel deletion of Page Layout
confirmedDeletePgObject()
conform deletion of Page Layout
setScopeObject()
Set scope.
viewPageLayoutsObject()
view list of page layouts
deleteSysStyleCatAssignmentsObject()
Delete system style to category assignments.
assignStylesToCatsObject()
Assign styles to cats.
setTabs()
set admin tabs @access public
toggleGlobalFixedObject()
Toggle global fixed style.
getAdminTabs(&$tabs_gui)
administration tabs show only permissions and trash folder
importPageLayoutFormObject()
Import page layout.
importPageLayoutObject()
Import page layout.
cancelDeleteObject()
cancel deletion of object
confirmDeleteIndividualStyles()
addStyleCatAssignmentObject()
Add style category assignment.
initPageLayoutImportForm()
Init page layout import form.
showActions($with_subobjects=false)
show possible action (form buttons)
moveIndividualStylesObject()
move all learning modules with individual styles to new style
toggleGlobalDefaultObject()
Toggle global default style.
saveScopeObject()
Save scope for style.
moveUserStylesObject()
Move user styles.
savePageLayoutTypesObject()
Save page layout types.
moveLMStylesObject()
move learning modules from one style to another
deleteStyleObject($a_error=false)
display deletion confirmation screen
activateObject($a_activate=true)
deletePglObject()
display deletion confirmation screen
editSystemStylesObject()
edit system styles
& executeCommand()
Execute command.
ilObjStyleSettingsGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
Constructor.
editContentStylesObject()
view list of styles
exportLayoutObject()
Export page layout template object.
saveActiveStylesObject()
Save active styles.
saveStyleCatAssignmentObject()
Save style category assignment.
getTabs(&$tabs_gui)
get tabs @access public
addPageLayoutObject($a_form=null)
saveStyleSettingsObject()
save skin and style settings
confirmedDeleteObject()
delete selected style objects
_deactivateStyle($a_skin, $a_style)
deactivate style
_activateStyle($a_skin, $a_style)
activate style
_writeActive($a_id, $a_active)
Write active flag.
_writeScope($a_id, $a_scope)
Write scope.
_lookupActive($a_id)
Lookup active flag.
_moveUsersToStyle($a_from_skin, $a_from_style, $a_to_skin, $a_to_style)
skins and styles
_getAllUserAssignedStyles()
skins and styles
_getNumberOfUsersForStyle($a_skin, $a_style)
skins and styles
Class ilObjectGUI Basic methods of all Output classes.
ilObjectGUI($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor @access public.
getReturnLocation($a_cmd, $a_location="")
get return location for command (command is method name without "Object", e.g.
prepareOutput()
prepare output
showPossibleSubObjects()
show possible subobjects (pulldown menu)
static _lookupTitle($a_id)
lookup object title
Class ilPageLayoutGUI GUI class.
TableGUI class for page layouts.
static getAvailableModules()
static import($a_filename, $a_filepath)
Import page layout.
static getLayouts($a_active=false, $a_special_page=false, $a_module=null)
Get layouts.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Explorer for selecting repository items.
deleteSystemStyleCategoryAssignment($a_skin_id, $a_style_id, $a_substyle, $a_ref_id)
Delete category style assignment.
static getAllSkinStyles()
Get all skins/styles.
writeSystemStyleCategoryAssignment($a_skin_id, $a_style_id, $a_substyle, $a_ref_id)
Write category assignment.
TableGUI class for system style to category assignments.
TableGUI class for system styles.
special template class to simplify handling of ITX/PEAR
This class represents a text area property in a property form.
This class represents a text property in a property form.
static getImageTagByType($a_type, $a_path, $a_big=false)
Builds an html image tag TODO: function still in use, but in future use getImagePath and move HTML-Co...
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static redirect($a_script)
http redirect to other script
static ilTempnam($a_temp_path=null)
Create a temporary file in an ILIAS writable directory.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
redirection script todo: (a better solution should control the processing via a xml file)
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
if(!is_array($argv)) $options