51 $this->ctrl = $DIC->ctrl();
52 $this->lng = $DIC->language();
53 $this->tpl = $DIC[
"tpl"];
54 $this->setting = $DIC[
"ilSetting"];
55 $this->parent_gui = $a_parent_gui;
56 $this->
object = $this->parent_gui->object;
64 $next_class = $this->ctrl->getNextClass($this);
65 $cmd = $this->ctrl->getCmd(
"show");
70 if (in_array(
$cmd,
array(
"show",
"save")))
86 $this->tpl->setContent($form->getHTML());
94 include_once(
"./Services/Object/classes/class.ilObjectServiceSettingsGUI.php");
95 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
98 if($this->setting->get(
'block_activated_news'))
103 $news->setChecked($this->
object->getNewsBlockActivated());
104 $news->setInfo($this->lng->txt(
'obj_tool_setting_news_info'));
105 $form->addItem($news);
110 include_once
'Services/Membership/classes/class.ilMembershipNotifications.php';
117 $cb->
setInfo($this->lng->txt(
"cont_news_timeline_info"));
118 $cb->setChecked($this->
object->getNewsTimeline());
122 $cb2 =
new ilCheckboxInputGUI($this->lng->txt(
"cont_news_timeline_auto_entries"),
"news_timeline_auto_entries");
123 $cb2->
setInfo($this->lng->txt(
"cont_news_timeline_auto_entries_info"));
124 $cb2->setChecked($this->
object->getNewsTimelineAutoEntries());
125 $cb->addSubItem($cb2);
128 $cb2 =
new ilCheckboxInputGUI($this->lng->txt(
"cont_news_timeline_landing_page"),
"news_timeline_landing_page");
129 $cb2->
setInfo($this->lng->txt(
"cont_news_timeline_landing_page_info"));
130 $cb2->setChecked($this->
object->getNewsTimelineLandingPage());
131 $cb->addSubItem($cb2);
134 $form->addCommandButton(
"save", $this->lng->txt(
"save"));
136 $form->setTitle($this->lng->txt(
"cont_news_settings"));
137 $form->setFormAction($this->ctrl->getFormAction($this));
148 if ($form->checkInput())
150 include_once(
"./Services/Object/classes/class.ilObjectServiceSettingsGUI.php");
152 $this->
object->setNewsTimeline($form->getInput(
"news_timeline"));
153 $this->
object->setNewsTimelineAutoEntries($form->getInput(
"news_timeline_auto_entries"));
154 $this->
object->setNewsTimelineLandingPage($form->getInput(
"news_timeline_landing_page"));
157 if($this->setting->get(
'block_activated_news'))
163 include_once
"Services/Membership/classes/class.ilMembershipNotifications.php";
168 $this->
object->update();
170 $this->ctrl->redirect($this,
"");
174 $form->setValuesByPost();
175 $this->tpl->setContent($form->getHtml());
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
executeCommand()
Execute command.
static _getAllReferences($a_id)
get all reference ids of object
save()
Save settings form.
__construct(ilObjectGUI $a_parent_gui)
Constructor.
static addToSettingsForm($a_ref_id, ilPropertyFormGUI $a_form=null, ilFormPropertyGUI $a_input=null)
Add notification settings to form.
News settings for containers.
Class ilObjectGUI Basic methods of all Output classes.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
initForm()
Init settings form.
Create new PHPExcel object
obj_idprivate
static importFromForm($a_ref_id, ilPropertyFormGUI $a_form=null)
Import notification settings from form.