4include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
 
    5include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
 
   37    public function __construct($a_data, $a_id, $a_call_by_reference = 
true, $a_prepare_output = 
true)
 
   41        $this->rbacsystem = 
$DIC->rbac()->system();
 
   42        $this->
error = $DIC[
"ilErr"];
 
   43        $this->access = 
$DIC->access();
 
   45        $this->ctrl = 
$DIC->ctrl();
 
   46        $this->lng = 
$DIC->language();
 
   48        parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
 
   50        $this->lng->loadLanguageModule(
'content');
 
   65        $next_class = $this->ctrl->getNextClass($this);
 
   66        $cmd = $this->ctrl->getCmd();
 
   70        if (!$ilAccess->checkAccess(
'read', 
'', $this->object->getRefId())) {
 
   71            $ilErr->raiseError($this->lng->txt(
'no_permission'), 
$ilErr->WARNING);
 
   74        switch ($next_class) {
 
   75            case 'illicenseoverviewgui':
 
   76                include_once(
"./Services/License/classes/class.ilLicenseOverviewGUI.php");
 
   78                $ret = $this->ctrl->forwardCommand($license_gui);
 
   81            case 'ilpermissiongui':
 
   82                $this->tabs_gui->setTabActive(
'perm_settings');
 
   83                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   85                $ret = $this->ctrl->forwardCommand($perm_gui);
 
   89                if (!$cmd || $cmd == 
'view') {
 
   90                    $cmd = 
"editSettings";
 
  111        if (
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
  112            $this->tabs_gui->addTarget(
 
  113                "cont_edit_lrs_settings",
 
  114                $this->ctrl->getLinkTarget($this, 
"editSettings"),
 
  115                array(
"editSettings", 
"view")
 
  118            include_once(
"Services/License/classes/class.ilLicenseAccess.php");
 
  120                $this->tabs_gui->addTarget(
 
  122                    $this->ctrl->getLinkTargetByClass(
'illicenseoverviewgui', 
''),
 
  124                    "illicenseoverviewgui" 
  129        if (
$rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId())) {
 
  130            $this->tabs_gui->addTarget(
 
  132                $this->ctrl->getLinkTargetByClass(
'ilpermissiongui', 
"perm"),
 
  150        $lng->loadLanguageModule(
"license");
 
  151        $lng->loadLanguageModule(
"scormdebug");
 
  153        include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  156        $form->setTitle(
$lng->txt(
"cont_lrs_settings"));
 
  160            $lng->txt(
"cont_enable_page_history"),
 
  163        $cb_prop->setInfo(
$lng->txt(
"cont_enable_page_history_info"));
 
  164        $cb_prop->setChecked(
$lm_set->get(
"page_history", 1));
 
  165        $form->addItem($cb_prop);
 
  169            $lng->txt(
"cont_enable_time_scheduled_page_activation"),
 
  170            "time_scheduled_page_activation" 
  172        $cb_prop->setInfo(
$lng->txt(
"cont_enable_time_scheduled_page_activation_info"));
 
  173        $cb_prop->setChecked(
$lm_set->get(
"time_scheduled_page_activation"));
 
  174        $form->addItem($cb_prop);
 
  178            "" => $this->lng->txt(
"cont_last_visited_page"),
 
  179            "first" => $this->lng->txt(
"cont_first_page")
 
  181        $si = 
new ilSelectInputGUI($this->lng->txt(
"cont_lm_starting_point"), 
"lm_starting_point");
 
  183        $si->setValue(
$lm_set->get(
"lm_starting_point"));
 
  184        $si->setInfo($this->lng->txt(
"cont_lm_starting_point_info"));
 
  189            $lng->txt(
"cont_replace_mob_feature"),
 
  190            "replace_mob_feature" 
  192        $cb_prop->setInfo(
$lng->txt(
"cont_replace_mob_feature_info"));
 
  193        $cb_prop->setChecked(
$lm_set->get(
"replace_mob_feature"));
 
  194        $form->addItem($cb_prop);
 
  198            $lng->txt(
"cont_html_export_ids"),
 
  201        $cb_prop->setInfo(
$lng->txt(
"cont_html_export_ids_info"));
 
  202        $cb_prop->setChecked(
$lm_set->get(
"html_export_ids"));
 
  203        $form->addItem($cb_prop);
 
  207            $lng->txt(
"cont_upload_dir"),
 
  210        $tx_prop->setInfo(
$lng->txt(
"cont_upload_dir_info"));
 
  211        $tx_prop->setValue(
$lm_set->get(
"cont_upload_dir"));
 
  212        $form->addItem($tx_prop);
 
  217            $lng->txt(
"license_counter"),
 
  220        $cb_prop->setInfo(
$lng->txt(
"license_counter_info"));
 
  221        $cb_prop->setChecked($lic_set->get(
"license_counter"));
 
  222        $form->addItem($cb_prop);
 
  226            $lng->txt(
"license_warning"),
 
  229        $tx_prop->setSize(5);
 
  230        $tx_prop->setInfo(
$lng->txt(
"license_warning_info"));
 
  231        $tx_prop->setValue($lic_set->get(
"license_warning"));
 
  232        $form->addItem($tx_prop);
 
  236        $cb_prop->setInfo(
$lng->txt(
"scormdebug_global_activate_info"));
 
  237        $cb_prop->setChecked(
$lm_set->get(
"scormdebug_global_activate"));
 
  238        $form->addItem($cb_prop);
 
  242            $lng->txt(
"scormdebug_disable_cache"),
 
  243            "scormdebug_disable_cache" 
  245        $cb_prop->setInfo(
$lng->txt(
"scormdebug_disable_cache_info"));
 
  246        $cb_prop->setChecked(
$lm_set->get(
"scormdebug_disable_cache"));
 
  247        $form->addItem($cb_prop);
 
  251            $lng->txt(
"scorm_without_session"),
 
  252            "scorm_without_session" 
  254        $cb_prop->setInfo(
$lng->txt(
"scorm_without_session_info"));
 
  255        $cb_prop->setChecked(
$lm_set->get(
"scorm_without_session"));
 
  256        $form->addItem($cb_prop);
 
  259        $check = 
new ilCheckboxInputGui(
$lng->txt(
'enable_sahs_protocol_data'), 
'enable_sahs_pd');
 
  260        $check->setInfo($this->lng->txt(
'enable_sahs_protocol_data_desc'));
 
  261        $check->setChecked($privacy->enabledSahsProtocolData());
 
  262        $form->addItem($check);
 
  265        $check = 
new ilCheckboxInputGui($this->lng->txt(
'ps_export_scorm'), 
'export_scorm');
 
  266        $check->setInfo($this->lng->txt(
'enable_export_scorm_desc'));
 
  267        $check->setChecked($privacy->enabledExportSCORM());
 
  268        $form->addItem($check);
 
  272        $cb_prop->setInfo(
$lng->txt(
"scorm_lp_auto_activate_info"));
 
  273        $cb_prop->setChecked(
$lm_set->get(
"scorm_lp_auto_activate"));
 
  274        $form->addItem($cb_prop);
 
  278            $form->addCommandButton(
"saveSettings", 
$lng->txt(
"save"));
 
  279            $form->addCommandButton(
"view", 
$lng->txt(
"cancel"));
 
  282        $this->tpl->setContent(
$form->getHTML());
 
  297            "time_scheduled_page_activation",
 
  309            "replace_mob_feature",
 
  321            "scormdebug_global_activate",
 
  325            "scorm_login_as_learner_id",
 
  329            "scormdebug_disable_cache",
 
  333            "scorm_without_session",
 
  337            "scorm_lp_auto_activate",
 
  351        $privacy->enableSahsProtocolData((
int) 
$_POST[
'enable_sahs_pd']);
 
  352        $privacy->enableExportSCORM((
int) 
$_POST[
'export_scorm']);
 
  357        $ilCtrl->redirect($this, 
"view");
 
  362        switch ($a_form_id) {
 
  369                return array(array(
"editSettings", $fields));
 
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
An exception for terminatinating execution or to throw for unit testing.
error($a_errmsg)
set error message @access public
static _isEnabled()
Check, if licencing is enabled This check is called from the ilAccessHandler class.
const LIC_MODE_ADMINISTRATION
Learning Resources Settings.
editSettings()
Edit learning resources settings.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Contructor.
saveSettings()
Save learning resources settings.
addToExternalSettingsForm($a_form_id)
executeCommand()
Execute command.
Class ilObjectGUI Basic methods of all Output classes.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
prepareOutput($a_show_subobjects=true)
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static _getInstance()
Get instance of ilPrivacySettings.
This class represents a text property in a property form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
if(isset($_POST['submit'])) $form