3include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
 
   17        public function __construct($a_data, $a_id, $a_call_by_reference = 
true, $a_prepare_output = 
true)
 
   19                parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
 
   22                $this->lng->loadLanguageModule(
'rep');
 
   23                $this->lng->loadLanguageModule(
'cmps');
 
   30                $next_class = $this->ctrl->getNextClass($this);
 
   31                $cmd = $this->ctrl->getCmd();
 
   35                if(!$ilAccess->checkAccess(
'read', 
'', $this->object->getRefId()))
 
   37                        $ilErr->raiseError($this->lng->txt(
'no_permission'), 
$ilErr->WARNING);
 
   42                        case 'ilpermissiongui':
 
   43                                $this->tabs_gui->setTabActive(
'perm_settings');
 
   44                                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   46                                $this->ctrl->forwardCommand($perm_gui);
 
   60                $this->tabs_gui->addTab(
"settings",
 
   61                        $this->lng->txt(
"settings"),
 
   62                        $this->ctrl->getLinkTarget($this, 
"view"));
 
   64                $this->tabs_gui->addTab(
"icons",
 
   65                        $this->lng->txt(
"rep_custom_icons"),
 
   66                        $this->ctrl->getLinkTarget($this, 
"customIcons"));
 
   68                $this->tabs_gui->addTab(
"modules",
 
   69                        $this->lng->txt(
"cmps_repository_object_types"),
 
   70                        $this->ctrl->getLinkTarget($this, 
"listModules"));                      
 
   72                if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
 
   74                        $this->tabs_gui->addTab(
"perm_settings",
 
   75                                $this->lng->txt(
"perm_settings"),
 
   76                                $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"));
 
   82                $this->tabs_gui->activateTab(
"settings");
 
   89                $this->tpl->setContent($a_form->getHTML());
 
   96                include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
 
   98                $form->setTitle($this->lng->txt(
"settings"));
 
   99                $form->setFormAction($this->ctrl->getFormAction($this, 
'saveSettings'));                                        
 
  103                        "flat" => $this->lng->txt(
"flatview"),
 
  104                        "tree" => $this->lng->txt(
"treeview")
 
  108                $si->setInfo($this->lng->txt(
""));
 
  109                if (
$ilSetting->get(
"default_repository_view") == 
"tree")
 
  111                        $si->setValue(
"tree");
 
  115                        $si->setValue(
"flat");
 
  121                        "" => $this->lng->txt(
"adm_rep_tree_only_container"),
 
  122                        "tree" => $this->lng->txt(
"adm_all_resource_types")
 
  127                $radg->setValue(
$ilSetting->get(
"repository_tree_pres"));
 
  128                $op1 = 
new ilRadioOption($this->lng->txt(
"adm_rep_tree_only_cntr"), 
"",
 
  129                        $this->lng->txt(
"adm_rep_tree_only_cntr_info"));
 
  130                $radg->addOption($op1);
 
  132                $op2 = 
new ilRadioOption($this->lng->txt(
"adm_rep_tree_all_types"), 
"all_types",
 
  133                        $this->lng->txt(
"adm_rep_tree_all_types_info"));
 
  136                        $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"adm_rep_tree_limit_grp_crs"), 
"rep_tree_limit_grp_crs");
 
  137                        $cb->setChecked(
$ilSetting->get(
"rep_tree_limit_grp_crs"));
 
  138                        $cb->setInfo($this->lng->txt(
"adm_rep_tree_limit_grp_crs_info"));
 
  139                        $op2->addSubItem($cb);
 
  141                $radg->addOption($op2);
 
  143                $form->addItem($radg);  
 
  172                $cb->setInfo($this->lng->txt(
"enable_trash_info"));
 
  175                        $cb->setChecked(
true);
 
  180                require_once 
'Services/Tracking/classes/class.ilChangeEvent.php';
 
  181                $this->lng->loadLanguageModule(
"trac");
 
  182                $event = 
new ilCheckboxInputGUI($this->lng->txt(
'trac_repository_changes'), 
'change_event_tracking');
 
  184                $form->addItem($event);
 
  187                include_once 
"Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php";
 
  198                $lists->setTitle($this->lng->txt(
"rep_object_lists"));
 
  199                $form->addItem($lists);         
 
  201                $sdesc = 
new ilCheckboxInputGUI($this->lng->txt(
"adm_rep_shorten_description"), 
"rep_shorten_description");
 
  202                $sdesc->setInfo($this->lng->txt(
"adm_rep_shorten_description_info"));
 
  203                $sdesc->setChecked(
$ilSetting->get(
"rep_shorten_description"));
 
  204                $form->addItem($sdesc);
 
  206                $sdesclen = 
new ilNumberInputGUI($this->lng->txt(
"adm_rep_shorten_description_length"), 
"rep_shorten_description_length");
 
  207                $sdesclen->setValue(
$ilSetting->get(
"rep_shorten_description_length"));
 
  208                $sdesclen->setSize(3);
 
  209                $sdesc->addSubItem($sdesclen);
 
  212                $cb = 
new ilCheckboxInputGUI($this->lng->txt(
"adm_item_cmd_asynch"), 
"item_cmd_asynch");
 
  213                $cb->setInfo($this->lng->txt(
"adm_item_cmd_asynch_info"));
 
  214                $cb->setChecked(
$ilSetting->get(
"item_cmd_asynch"));
 
  218                $pl = 
new ilCheckboxInputGUI($this->lng->txt(
'adm_show_comments_tagging_in_lists'),
'comments_tagging_in_lists');
 
  220                $pl->setChecked(
$ilSetting->get(
'comments_tagging_in_lists'));
 
  223                $pltags = 
new ilCheckboxInputGUI($this->lng->txt(
'adm_show_comments_tagging_in_lists_tags'),
'comments_tagging_in_lists_tags');
 
  224                $pltags->setValue(1);
 
  225                $pltags->setChecked(
$ilSetting->get(
'comments_tagging_in_lists_tags'));
 
  226                $pl->addSubItem($pltags);
 
  228                if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
 
  230                        $form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
 
  240                if(!$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
 
  242                        $this->ctrl->redirect($this, 
"view");
 
  246                if ($form->checkInput())
 
  251                        if (
$_POST[
"tree_pres"] == 
"")
 
  253                                $_POST[
"rep_tree_limit_grp_crs"] = 
"";
 
  255                        if (
$_POST[
"rep_tree_limit_grp_crs"] && !
$ilSetting->get(
"rep_tree_limit_grp_crs"))
 
  257                                $_POST[
"rep_tree_synchronize"] = 
true;
 
  259                        else if (!
$_POST[
"rep_tree_synchronize"] && 
$ilSetting->get(
"rep_tree_synchronize"))
 
  261                                $_POST[
"rep_tree_limit_grp_crs"] = 
false;
 
  263                        $ilSetting->set(
"rep_tree_limit_grp_crs", 
$_POST[
"rep_tree_limit_grp_crs"]);
 
  270                        $ilSetting->set(
"rep_shorten_description", $form->getInput(
'rep_shorten_description'));
 
  271                        $ilSetting->set(
"rep_shorten_description_length", (
int)$form->getInput(
'rep_shorten_description_length'));                                                                              
 
  273                $ilSetting->set(
'comments_tagging_in_lists',(
int) 
$_POST[
'comments_tagging_in_lists']); 
 
  274                $ilSetting->set(
'comments_tagging_in_lists_tags',(
int) 
$_POST[
'comments_tagging_in_lists_tags']);       
 
  276                        require_once 
'Services/Tracking/classes/class.ilChangeEvent.php';                       
 
  277                        if ($form->getInput(
'change_event_tracking'))
 
  287                        $this->ctrl->redirect($this, 
"view");
 
  290                $form->setValuesByPost();
 
  296                $this->tabs_gui->activateTab(
"icons");
 
  303                $this->tpl->setContent($a_form->getHTML());
 
  310                include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  311                include_once 
"Services/Form/classes/class.ilCombinationInputGUI.php";
 
  313                $form->setTitle($this->lng->txt(
"rep_custom_icons"));
 
  314                $form->setFormAction($this->ctrl->getFormAction($this, 
'saveCustomIcons'));                     
 
  317                $cb->setInfo($this->lng->txt(
"enable_custom_icons_info"));
 
  318                $cb->setChecked(
$ilSetting->get(
"custom_icons"));
 
  364                if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
 
  366                        $form->addCommandButton(
'saveCustomIcons', $this->lng->txt(
'save'));
 
  376                if(!$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
 
  378                        $this->ctrl->redirect($this, 
"customIcons");
 
  382                if ($form->checkInput())
 
  384                        $ilSetting->set(
"custom_icons", (
int)$form->getInput(
"custom_icons"));
 
  394                        $this->ctrl->redirect($this, 
"customIcons");
 
  397                $form->setValuesByPost();
 
  403                $this->tabs_gui->activateTab(
'modules');
 
  405                $this->tabs_gui->addSubTab(
"list_mods",
 
  406                        $this->lng->txt(
"rep_new_item_menu"),
 
  407                        $this->ctrl->getLinkTarget($this, 
"listModules"));
 
  409                $this->tabs_gui->addSubTab(
"new_item_groups",
 
  410                        $this->lng->txt(
"rep_new_item_groups"),
 
  411                        $this->ctrl->getLinkTarget($this, 
"listNewItemGroups"));
 
  413                $this->tabs_gui->activateSubTab($a_active);
 
  422                $has_write = $ilAccess->checkAccess(
'write',
'',$this->object->getRefId());
 
  424                include_once(
"./Services/Repository/classes/class.ilModulesTableGUI.php");
 
  427                $this->tpl->setContent($comp_table->getHTML());
 
  434                if(!is_array(
$_POST[
"obj_grp"]) || 
 
  435                        !is_array(
$_POST[
"obj_pos"]) ||
 
  436                        !$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))          
 
  438                        $ilCtrl->redirect($this, 
"listModules");        
 
  441                $grp_pos_map = array(0 => 9999);
 
  442                include_once(
"Services/Repository/classes/class.ilObjRepositorySettings.php");
 
  445                        $grp_pos_map[$item[
"id"]] = $item[
"pos"];
 
  448                $type_pos_map = array();
 
  449                foreach(
$_POST[
"obj_pos"] as $obj_type => $pos)
 
  451                        $grp_id = (int)
$_POST[
"obj_grp"][$obj_type];                                            
 
  452                        $type_pos_map[$grp_id][$obj_type] = $pos;       
 
  455                        $ilSetting->set(
"obj_dis_creation_".$obj_type, !(
int)
$_POST[
"obj_enbl_creation"][$obj_type]);
 
  458                foreach($type_pos_map as $grp_id => $obj_types)
 
  460                        $grp_pos = str_pad($grp_pos_map[$grp_id], 4, 
"0", STR_PAD_LEFT);
 
  464                        foreach(array_keys($obj_types) as $obj_type)
 
  467                                $type_pos = $grp_pos.str_pad($pos, 4, 
"0", STR_PAD_LEFT);                               
 
  468                                $ilSetting->set(
"obj_add_new_pos_".$obj_type, $type_pos);                                                                                               
 
  469                                $ilSetting->set(
"obj_add_new_pos_grp_".$obj_type, $grp_id);
 
  485                $ilCtrl->redirect($this, 
"listModules");                
 
  490                global $ilToolbar, $ilAccess;
 
  494                $has_write = $ilAccess->checkAccess(
'write',
'',$this->object->getRefId());
 
  498                        $ilToolbar->addButton($this->lng->txt(
"rep_new_item_group_add"), 
 
  499                                $this->ctrl->getLinkTarget($this, 
"addNewItemGroup"));
 
  501                        $ilToolbar->addButton($this->lng->txt(
"rep_new_item_group_add_separator"), 
 
  502                                $this->ctrl->getLinkTarget($this, 
"addNewItemGroupSeparator"));
 
  505                include_once(
"./Services/Repository/classes/class.ilNewItemGroupTableGUI.php");
 
  508                $this->tpl->setContent($grp_table->getHTML());
 
  515                include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  518                $this->lng->loadLanguageModule(
"meta");
 
  519                $def_lng = $this->lng->getDefaultLanguage();
 
  521                $title = 
new ilTextInputGUI($this->lng->txt(
"title"), 
"title_".$def_lng);
 
  522                $title->setInfo($this->lng->txt(
"meta_l_".$def_lng).
 
  523                        " (".$this->lng->txt(
"default_language").
")");
 
  524                $title->setRequired(
true);
 
  525                $form->addItem($title);
 
  527                foreach($this->lng->getInstalledLanguages() as $lang_id)
 
  529                        if($lang_id != $def_lng)
 
  531                                $title = 
new ilTextInputGUI($this->lng->txt(
"translation"), 
"title_".$lang_id);
 
  532                                $title->setInfo($this->lng->txt(
"meta_l_".$lang_id));
 
  533                                $form->addItem($title);         
 
  539                        $form->setTitle($this->lng->txt(
"rep_new_item_group_add"));
 
  540                        $form->setFormAction($this->ctrl->getFormAction($this, 
"saveNewItemGroup"));
 
  542                        $form->addCommandButton(
"saveNewItemGroup", $this->lng->txt(
"save"));                   
 
  546                        $form->setTitle($this->lng->txt(
"rep_new_item_group_edit"));
 
  547                        $form->setFormAction($this->ctrl->getFormAction($this, 
"updateNewItemGroup"));
 
  549                        include_once(
"Services/Repository/classes/class.ilObjRepositorySettings.php");
 
  551                        $grp = $grp[$a_grp_id];
 
  553                        foreach($grp[
"titles"] as $id => $value)
 
  555                                $field = $form->getItemByPostVar(
"title_".$id);
 
  558                                        $field->setValue($value);
 
  562                        $form->addCommandButton(
"updateNewItemGroup", $this->lng->txt(
"save"));                 
 
  564                $form->addCommandButton(
"listNewItemGroups", $this->lng->txt(
"cancel"));                        
 
  576                $this->tpl->setContent($a_form->getHTML());
 
  582                if($form->checkInput())
 
  585                        foreach($this->lng->getInstalledLanguages() as $lang_id)
 
  587                                $titles[$lang_id] = $form->getInput(
"title_".$lang_id);
 
  590                        include_once(
"Services/Repository/classes/class.ilObjRepositorySettings.php");
 
  594                                $this->ctrl->redirect($this, 
"listNewItemGroups");
 
  598                $form->setValuesByPost();
 
  604                $grp_id = (int)
$_GET[
"grp_id"];
 
  607                        $this->ctrl->redirect($this, 
"listNewItemGroups");
 
  612                        $this->ctrl->setParameter($this, 
"grp_id", $grp_id);
 
  616                $this->tpl->setContent($a_form->getHTML());     
 
  621                $grp_id = (int)
$_GET[
"grp_id"];
 
  624                        $this->ctrl->redirect($this, 
"listNewItemGroups");
 
  627                $this->ctrl->setParameter($this, 
"grp_id", $grp_id);
 
  630                if($form->checkInput())
 
  633                        foreach($this->lng->getInstalledLanguages() as $lang_id)
 
  635                                $titles[$lang_id] = $form->getInput(
"title_".$lang_id);
 
  638                        include_once(
"Services/Repository/classes/class.ilObjRepositorySettings.php");
 
  642                                $this->ctrl->redirect($this, 
"listNewItemGroups");
 
  646                $form->setValuesByPost();
 
  652                include_once(
"Services/Repository/classes/class.ilObjRepositorySettings.php");
 
  657                $this->ctrl->redirect($this, 
"listNewItemGroups");
 
  664                if(is_array(
$_POST[
"grp_order"]))       
 
  666                        include_once(
"Services/Repository/classes/class.ilObjRepositorySettings.php");
 
  669                        $grp_pos_map = array();
 
  670                        include_once(
"Services/Repository/classes/class.ilObjRepositorySettings.php");
 
  673                                $grp_pos_map[$item[
"id"]] = str_pad($item[
"pos"], 4, 
"0", STR_PAD_LEFT);
 
  682                                        foreach($subitems as $obj_type)
 
  684                                                $old_pos = 
$ilSetting->get(
"obj_add_new_pos_".$obj_type);
 
  685                                                if(strlen($old_pos) == 8)
 
  687                                                        $new_pos = $grp_pos_map[$grp_id].substr($old_pos, 4);
 
  688                                                        $ilSetting->set(
"obj_add_new_pos_".$obj_type, $new_pos);
 
  696                $this->ctrl->redirect($this, 
"listNewItemGroups");
 
  701                if(!is_array(
$_POST[
"grp_id"]))
 
  709                include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
 
  711                $cgui->setHeaderText($this->lng->txt(
"rep_new_item_group_delete_sure"));
 
  713                $cgui->setFormAction($this->ctrl->getFormAction($this));
 
  714                $cgui->setCancel($this->lng->txt(
"cancel"), 
"listNewItemGroups");
 
  715                $cgui->setConfirm($this->lng->txt(
"confirm"), 
"deleteNewItemGroup");
 
  717                include_once(
"Services/Repository/classes/class.ilObjRepositorySettings.php");
 
  720                foreach (
$_POST[
"grp_id"] as $grp_id)
 
  722                        $cgui->addItem(
"grp_id[]", $grp_id, $groups[$grp_id][
"title"]);                 
 
  725                $this->tpl->setContent($cgui->getHTML());               
 
  730                if(!is_array(
$_POST[
"grp_id"]))
 
  735                include_once(
"Services/Repository/classes/class.ilObjRepositorySettings.php");
 
  736                foreach(
$_POST[
"grp_id"] as $grp_id)
 
  742                $this->ctrl->redirect($this, 
"listNewItemGroups");
 
  753                                require_once 
'Services/Tracking/classes/class.ilChangeEvent.php';               
 
  756                                return array(array(
"view", $fields));   
 
  766                                return array(array(
"view", $fields));   
 
static _isActive()
Returns true, if change event tracking is active.
static _activate()
Activates change event tracking.
static _deactivate()
Deactivates change event tracking.
Confirmation screen class.
TableGUI class for module listing.
TableGUI class for new item groups.
setModuleSubTabs($a_active)
confirmDeleteNewItemGroup()
executeCommand()
execute command
editNewItemGroup(ilPropertyFormGUI $a_form=null)
addToExternalSettingsForm($a_form_id)
view(ilPropertyFormGUI $a_form=null)
addNewItemGroupSeparator()
customIcons(ilPropertyFormGUI $a_form=null)
initNewItemGroupForm($a_grp_id=false)
addNewItemGroup(ilPropertyFormGUI $a_form=null)
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
static addNewItemGroupSeparator()
static getNewItemGroups()
static updateNewItemGroupOrder(array $a_order)
static updateNewItemGroup($a_id, array $a_titles)
static getNewItemGroupSubItems()
static deleteNewItemGroup($a_id)
static addNewItemGroup(array $a_titles)
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput()
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
This class represents an option in a radio group.
This class represents a text property in a property form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
if(!is_array($argv)) $options