36         bool $a_call_by_reference = 
true,
    37         bool $a_prepare_output = 
true    41         $this->rbacsystem = $DIC->rbac()->system();
    42         $this->
ctrl = $DIC->ctrl();
    43         $this->
lng = $DIC->language();
    47         $this->
lng->loadLanguageModule(
"awrn");
    48         $this->
lng->loadLanguageModule(
"pd");
    49         $this->
lng->loadLanguageModule(
"usr");
    50         $this->admin_manager = $DIC->awareness()
    53             ->admin($this->requested_ref_id);
    58         $next_class = $this->
ctrl->getNextClass($this);
    59         $cmd = $this->
ctrl->getCmd();
    63         switch ($next_class) {
    64             case 'iluseractionadmingui':
    67                 $this->tabs_gui->setTabActive(
'settings');
    69                 $this->
ctrl->forwardCommand($gui);
    72             case 'ilpermissiongui':
    73                 $this->tabs_gui->setTabActive(
'perm_settings');
    75                 $this->
ctrl->forwardCommand($perm_gui);
    79                 if (!$cmd || $cmd == 
'view') {
    80                     $cmd = 
"editSettings";
    92         if ($rbacsystem->
checkAccess(
"visible,read", $this->object->getRefId())) {
    93             $this->tabs_gui->addTab(
    95                 $this->
lng->txt(
"settings"),
    96                 $this->
ctrl->getLinkTarget($this, 
"editSettings")
   100         if ($rbacsystem->
checkAccess(
'edit_permission', $this->object->getRefId())) {
   101             $this->tabs_gui->addTab(
   103                 $this->
lng->txt(
"perm_settings"),
   104                 $this->
ctrl->getLinkTargetByClass(
'ilpermissiongui', 
"perm")
   111         $this->tabs_gui->addSubTab(
   113             $this->
lng->txt(
"settings"),
   114             $this->
ctrl->getLinkTarget($this, 
"editSettings")
   117         $this->tabs_gui->addSubTab(
   119             $this->
lng->txt(
"user_actions"),
   120             $this->
ctrl->getLinkTargetByClass(
"iluseractionadmingui")
   123         $this->tabs_gui->activateSubTab($a_id);
   132         $this->tabs_gui->setTabActive(
'settings');
   138         $this->tpl->setContent($a_form->getHTML());
   152         if ($form->checkInput()) {
   154             $awrn_set->set(
"awrn_enabled", (
bool) $form->getInput(
"enable_awareness"));
   156             $p = (
int) $form->getInput(
"caching_period");
   160             $awrn_set->set(
"caching_period", $p);
   162             $awrn_set->set(
"max_nr_entries", (
int) $form->getInput(
"max_nr_entries"));
   163             $awrn_set->set(
"use_osd", (
int) $form->getInput(
"use_osd"));
   166             $pd_set->set(
"user_activity_time", (
int) $form->getInput(
"time_removal"));
   168             $prov = $this->admin_manager->getAllUserProviders();
   169             foreach ($prov as $p) {
   170                 $this->admin_manager->setActivationMode(
   172                     (
int) $form->getInput(
"up_act_mode_" . $p->getProviderId())
   176             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"settings_saved"), 
true);
   177             $ilCtrl->redirect($this, 
"editSettings");
   180         $form->setValuesByPost();
   199         $form->setFormAction($this->
ctrl->getFormAction($this));
   200         $form->setTitle($this->
lng->txt(
'awareness_settings'));
   203             $form->addCommandButton(
'saveSettings', $this->
lng->txt(
'save'));
   204             $form->addCommandButton(
'cancel', $this->
lng->txt(
'cancel'));
   211         $en->setChecked($awrn_set->get(
"awrn_enabled", 
false));
   215         $ti->setInfo($this->
lng->txt(
"awrn_caching_period_info"));
   216         $ti->setSuffix($this->
lng->txt(
"awrn_seconds"));
   218         $ti->setMaxLength(6);
   219         $ti->setValue($awrn_set->get(
"caching_period"));
   220         $en->addSubItem($ti);
   224         $ti->setInfo($this->
lng->txt(
"awrn_max_nr_entries_info"));
   226         $ti->setMaxLength(3);
   228         $ti->setMaxValue(200);
   229         $ti->setValue($awrn_set->get(
"max_nr_entries"));
   230         $en->addSubItem($ti);
   235             $lng->
txt(
"awrn_max_inactivity"),
   238         $ti_prop->setSuffix($this->
lng->txt(
"awrn_minutes"));
   239         if ($pd_set->get(
"user_activity_time") > 0) {
   240             $ti_prop->setValue($pd_set->get(
"user_activity_time"));
   242         $ti_prop->setInfo(
$lng->
txt(
"awrn_max_inactivity_info"));
   243         $ti_prop->setMaxLength(3);
   244         $ti_prop->setSize(3);
   245         $en->addSubItem($ti_prop);
   249         $osd->setInfo($this->
lng->txt(
"awrn_use_osd_info"));
   250         $osd->setChecked($awrn_set->get(
"use_osd", 
true));
   251         $en->addSubItem($osd);
   254         $prov = $this->admin_manager->getAllUserProviders();
   255         foreach ($prov as $p) {
   257             $options = $this->admin_manager->getModeOptions();
   258             $si = 
new ilSelectInputGUI($p->getTitle(), 
"up_act_mode_" . $p->getProviderId());
   260             $si->setInfo($p->getInfo());
   261             $si->setValue($this->admin_manager->getActivationMode($p->getProviderId()));
   262             $en->addSubItem($si);
 ILIAS Awareness AdminManager $admin_manager
 
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...
 
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
 
User action administration GUI class. 
 
prepareOutput(bool $show_sub_objects=true)
 
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 ...
 
Class ilObjectGUI Basic methods of all Output classes. 
 
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)
 
__construct(Container $dic, ilPlugin $plugin)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
saveSettings()
Save settings. 
 
__construct( $a_data, int $a_id, bool $a_call_by_reference=true, bool $a_prepare_output=true)
 
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
editSettings(?ilPropertyFormGUI $a_form=null)
Edit settings.