41 $this->ctrl = $DIC->ctrl();
42 $this->lng = $DIC->language();
43 $this->tpl = $DIC[
"tpl"];
44 $this->ref_id = $a_ref_id;
46 include_once(
"./Services/Notification/classes/class.ilObjNotificationSettings.php");
57 $next_class =
$ctrl->getNextClass($this);
58 $cmd =
$ctrl->getCmd(
"show");
60 switch ($next_class) {
62 if (in_array($cmd,
array(
"show",
"save"))) {
89 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
92 $form->setFormAction(
$ctrl->getFormAction($this,
'save'));
93 $form->setTitle(
$lng->txt(
'obj_notification_settings'));
98 $opt_default =
new ilRadioOption(
$lng->txt(
"obj_user_decides_notification"),
'0');
101 $radio_grp->addOption($opt_default);
102 $radio_grp->addOption($opt_0);
108 $form->addItem($radio_grp);
111 $radio_grp->setValue(
'1');
114 $radio_grp->setValue(
'1');
115 $chb_2->setChecked(
true);
118 $form->addCommandButton(
"save",
$lng->txt(
"save"));
120 $form->setTitle($this->lng->txt(
"notifications"));
133 if (
$form->checkInput()) {
135 if (
$_POST[
'notification_type'] ==
"1") {
136 if ((
int)
$form->getInput(
'no_opt_out')) {
144 $ctrl->redirect($this,
"show");
147 $form->setValuesByPost();
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
This class represents an option in a radio group.
Handles general object notification settings, see e.g.
__construct($a_ref_id)
Constructor.
const MODE_DEF_ON_OPT_OUT
executeCommand()
Execute command.
if(isset($_POST['submit'])) $form
addSubItem($a_item)
Add Subitem.
static _lookupObjId($a_id)
const MODE_DEF_OFF_USER_ACTIVATION
Create styles array
The data for the language used.
Handles general notification settings, see e.g.
initForm()
Init settings form.
const MODE_DEF_ON_NO_OPT_OUT