36         bool $a_call_by_reference = 
true,
    37         bool $a_prepare_output = 
true    41         $this->
access = $DIC->access();
    43         $this->
ctrl = $DIC->ctrl();
    44         $this->
lng = $DIC->language();
    48         $this->
lng->loadLanguageModule(
'content');
    49         $this->
lng->loadLanguageModule(
'lm');
    54         $next_class = $this->
ctrl->getNextClass($this);
    55         $cmd = $this->
ctrl->getCmd();
    59         if (!$this->rbac_system->checkAccess(
"visible,read", $this->object->getRefId())) {
    63         switch ($next_class) {
    64             case 'ilpermissiongui':
    65                 $this->tabs_gui->setTabActive(
'perm_settings');
    67                 $ret = $this->
ctrl->forwardCommand($perm_gui);
    71                 if (!$cmd || $cmd == 
'view') {
    72                     $cmd = 
"editSettings";
    84             $this->tabs_gui->addTarget(
    85                 "cont_edit_lrs_settings",
    86                 $this->
ctrl->getLinkTarget($this, 
"editSettings"),
    87                 array(
"editSettings", 
"view")
    92             $this->tabs_gui->addTarget(
    94                 $this->
ctrl->getLinkTargetByClass(
'ilpermissiongui', 
"perm"),
   103         if (is_null($form)) {
   106         $this->tpl->setContent($form->getHTML());
   118         $form->setFormAction($ilCtrl->getFormAction($this));
   119         $form->setTitle(
$lng->
txt(
"cont_lrs_settings") . 
" - " . 
$lng->
txt(
"obj_lm"));
   123             $lng->
txt(
"cont_enable_page_history"),
   126         $cb_prop->setInfo(
$lng->
txt(
"cont_enable_page_history_info"));
   127         $cb_prop->setChecked((
bool) 
$lm_set->get(
"page_history", 
'1'));
   128         $form->addItem($cb_prop);
   132             $lng->
txt(
"cont_enable_time_scheduled_page_activation"),
   133             "time_scheduled_page_activation"   135         $cb_prop->setInfo(
$lng->
txt(
"cont_enable_time_scheduled_page_activation_info"));
   136         $cb_prop->setChecked((
bool) 
$lm_set->get(
"time_scheduled_page_activation"));
   137         $form->addItem($cb_prop);
   141             "" => $this->
lng->txt(
"cont_last_visited_page"),
   142             "first" => $this->
lng->txt(
"cont_first_page")
   144         $si = 
new ilSelectInputGUI($this->
lng->txt(
"cont_lm_starting_point"), 
"lm_starting_point");
   146         $si->setValue(
$lm_set->get(
"lm_starting_point"));
   147         $si->setInfo($this->
lng->txt(
"cont_lm_starting_point_info"));
   152             $lng->
txt(
"cont_replace_mob_feature"),
   153             "replace_mob_feature"   155         $cb_prop->setInfo(
$lng->
txt(
"cont_replace_mob_feature_info"));
   156         $cb_prop->setChecked((
bool) 
$lm_set->get(
"replace_mob_feature"));
   157         $form->addItem($cb_prop);
   161             $lng->
txt(
"cont_html_export_ids"),
   164         $cb_prop->setInfo(
$lng->
txt(
"cont_html_export_ids_info"));
   165         $cb_prop->setChecked((
bool) 
$lm_set->get(
"html_export_ids"));
   166         $form->addItem($cb_prop);
   170             $lng->
txt(
"lm_est_reading_time"),
   171             "lm_est_reading_time"   173         $cb_prop->setInfo(
$lng->
txt(
"lm_est_reading_time_info"));
   174         $cb_prop->setChecked((
bool) 
$lm_set->get(
"est_reading_time"));
   175         $form->addItem($cb_prop);
   178         $sh->setTitle(
$lng->
txt(
"cont_lrs_settings") . 
" - " . 
$lng->
txt(
"obj_sahs"));
   183         $cb_prop->setInfo(
$lng->
txt(
"scormdebug_global_activate_info"));
   184         $cb_prop->setChecked((
bool) 
$lm_set->get(
"scormdebug_global_activate"));
   185         $form->addItem($cb_prop);
   189             $lng->
txt(
"scormdebug_disable_cache"),
   190             "scormdebug_disable_cache"   192         $cb_prop->setInfo(
$lng->
txt(
"scormdebug_disable_cache_info"));
   193         $cb_prop->setChecked((
bool) 
$lm_set->get(
"scormdebug_disable_cache"));
   194         $form->addItem($cb_prop);
   198             $lng->
txt(
"scorm_without_session"),
   199             "scorm_without_session"   201         $cb_prop->setInfo(
$lng->
txt(
"scorm_without_session_info"));
   202         $cb_prop->setChecked((
bool) 
$lm_set->get(
"scorm_without_session"));
   203         $form->addItem($cb_prop);
   207         $check->setInfo($this->
lng->txt(
'enable_sahs_protocol_data_desc'));
   208         $check->setChecked((
bool) $privacy->enabledSahsProtocolData());
   213         $check->setInfo($this->
lng->txt(
'enable_export_scorm_desc'));
   214         $check->setChecked($privacy->enabledExportSCORM());
   219         $cb_prop->setInfo(
$lng->
txt(
"scorm_lp_auto_activate_info"));
   220         $cb_prop->setChecked((
bool) 
$lm_set->get(
"scorm_lp_auto_activate"));
   221         $form->addItem($cb_prop);
   225             $form->addCommandButton(
"saveSettings", 
$lng->
txt(
"save"));
   226             $form->addCommandButton(
"view", 
$lng->
txt(
"cancel"));
   239         if ($form->checkInput()) {
   242                 "time_scheduled_page_activation",
   243                 $form->getInput(
"time_scheduled_page_activation")
   247                 $form->getInput(
"lm_starting_point")
   251                 $form->getInput(
"page_history")
   254                 "replace_mob_feature",
   255                 $form->getInput(
"replace_mob_feature")
   259                 $form->getInput(
"html_export_ids")
   262                 "scormdebug_global_activate",
   263                 $form->getInput(
"scormdebug_global_activate")
   266                 "scorm_login_as_learner_id",
   267                 $form->getInput(
"scorm_login_as_learner_id")
   270                 "scormdebug_disable_cache",
   271                 $form->getInput(
"scormdebug_disable_cache")
   274                 "scorm_without_session",
   275                 $form->getInput(
"scorm_without_session")
   278                 "scorm_lp_auto_activate",
   279                 $form->getInput(
"scorm_lp_auto_activate")
   283                 $form->getInput(
"lm_est_reading_time")
   288             $privacy->enableSahsProtocolData((
int) $form->getInput(
'enable_sahs_pd'));
   289             $privacy->enableExportSCORM((
int) $form->getInput(
'export_scorm'));
   292             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"settings_saved"), 
true);
   293             $ilCtrl->redirect($this, 
"view");
   295             $form->setValuesByPost();
   302         switch ($a_form_id) {
   309                 return array(array(
"editSettings", $fields));
 
ilRbacSystem $rbac_system
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
prepareOutput(bool $show_sub_objects=true)
 
loadLanguageModule(string $a_module)
Load language module. 
 
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class ilObjectGUI Basic methods of all Output classes. 
 
editSettings(?ilPropertyFormGUI $form=null)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
addToExternalSettingsForm(int $a_form_id)
 
__construct( $a_data, int $a_id, bool $a_call_by_reference=true, bool $a_prepare_output=true)
 
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output. 
 
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)