4 require_once
"./Services/Object/classes/class.ilObjectGUI.php";
5 require_once
"./Services/Notifications/classes/class.ilObjNotificationAdmin.php";
6 require_once
"./Services/Notifications/classes/class.ilObjNotificationAdminAccess.php";
25 public function __construct($a_data, $a_id = 0, $a_call_by_reference =
true, $a_prepare_output =
true)
28 parent::__construct($a_data, $a_id, $a_call_by_reference,
false);
29 $this->lng->loadLanguageModule(
'notification');
41 $next_class = $this->ctrl->getNextClass($this);
42 $cmd = $this->ctrl->getCmd();
46 switch ($next_class) {
47 case 'ilpermissiongui':
49 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
51 $ret =&$this->ctrl->forwardCommand($perm_gui);
56 $ilTabs->activateTab(
"view");
58 if (empty($cmd) || $cmd ==
'view') {
78 require_once
'Services/Notifications/classes/class.ilObjNotificationAdmin.php';
80 $fileObj->setTitle(
'notification admin');
82 $fileObj->createReference();
83 $fileObj->putInTree(SYSTEM_FOLDER_ID);
90 global $ilAccess, $ilTabs,
$lng;
92 $this->ctrl->setParameter($this,
"ref_id", $this->ref_id);
94 if ($ilAccess->checkAccess(
"visible",
"", $this->ref_id)) {
97 $lng->txt(
"info_short"),
98 $this->ctrl->getLinkTargetByClass(
array(
"ilobjfilegui",
"ilinfoscreengui"),
"showSummary")
102 if ($ilAccess->checkAccess(
"edit_permission",
"", $this->ref_id)) {
105 $lng->txt(
"perm_settings"),
106 $this->ctrl->getLinkTargetByClass(
array(get_class($this),
'ilpermissiongui'),
"perm")
116 $ilTabs->addSubTabTarget(
"notification_general", $this->ctrl->getLinkTargetByClass(
'ilObjNotificationAdminGUI',
"showGeneralSettings"));
118 $ilTabs->addSubTabTarget(
"notification_admin_types", $this->ctrl->getLinkTargetByClass(
'ilObjNotificationAdminGUI',
"showTypes"));
119 $ilTabs->addSubTabTarget(
"notification_admin_matrix", $this->ctrl->getLinkTargetByClass(
'ilObjNotificationAdminGUI',
"showConfigMatrix"));
126 if (is_object($this->
object)) {
127 $ilLocator->addItem($this->
object->getTitle(), $this->ctrl->getLinkTarget($this,
""),
"",
$_GET[
"ref_id"]);
133 require_once
'Services/Notifications/classes/class.ilNotificationAdminSettingsForm.php';
148 $form->setFormAction($this->ctrl->getFormAction($this,
'saveGeneralSettings'));
149 $form->addCommandButton(
'saveGeneralSettings',
'save');
150 $form->addCommandButton(
'showGeneralSettings',
'cancel');
152 $this->tpl->setContent(
$form->getHtml());
157 require_once
'Services/Notifications/classes/class.ilNotificationAdminSettingsForm.php';
158 #require_once 'Services/Administration/classes/class.ilSetting.php'; 163 $form->setValuesByPost();
164 if (!
$form->checkInput()) {
173 $values =
$form->store_values;
176 foreach ($values as $v) {
180 foreach ($_REQUEST[
'notifications'] as
$type => $value) {
192 $ilTabs->activateSubTab(
'notification_admin_types');
194 require_once
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
195 require_once
'Services/Notifications/classes/class.ilNotificationAdminSettingsForm.php';
198 $form->setFormAction($this->ctrl->getFormAction($this,
'showTypes'));
199 $form->addCommandButton(
'saveTypes', $this->lng->txt(
'save'));
200 $form->addCommandButton(
'showTypes', $this->lng->txt(
'cancel'));
201 $this->tpl->setContent(
$form->getHtml());
208 $ilTabs->activateSubTab(
'notification_admin_channels');
210 require_once
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
211 require_once
'Services/Notifications/classes/class.ilNotificationAdminSettingsForm.php';
214 $form->setFormAction($this->ctrl->getFormAction($this,
'showChannels'));
215 $form->addCommandButton(
'saveChannels', $this->lng->txt(
'save'));
216 $form->addCommandButton(
'showChannels', $this->lng->txt(
'cancel'));
217 $this->tpl->setContent(
$form->getHtml());
222 require_once
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
223 foreach ($_REQUEST[
'notifications'] as
$type => $value) {
231 require_once
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
232 foreach ($_REQUEST[
'notifications'] as
$type => $value) {
242 $ilTabs->activateSubTab(
'notification_admin_matrix');
244 require_once
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
245 require_once
'Services/Notifications/classes/class.ilNotificationSettingsTable.php';
252 $table->setFormAction($ilCtrl->getFormAction($this,
'saveConfigMatrix'));
254 $table->setDescription($lng->txt(
'notification_admin_matrix_settings_table_desc'));
255 $table->addCommandButton(
'saveConfigMatrix', $lng->txt(
'save'));
256 $table->addCommandButton(
'showConfigMatrix', $lng->txt(
'cancel'));
258 $this->tpl->setContent(
$table->getHtml());
264 require_once
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
showGeneralSettingsObject($form=null)
__construct($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor public.
static saveObject2($params=array())
save object
static setConfigTypeForChannel($channel_name, $config_name)
prepareOutput($a_show_subobjects=true)
prepare output
static setConfigTypeForType($type_name, $config_name)
if(isset($_POST['submit'])) $form
Class ilObjectGUI Basic methods of all Output classes.
GUI class for notification objects.
saveGeneralSettingsObject()
Create styles array
The data for the language used.
Class ilObjNotificationAdmin.
Create new PHPExcel object
obj_idprivate
static getAvailableTypes($config_types=array())
static setUserConfig($userid, array $configArray)
Sets the configuration for all given configurations.
static getAvailableChannels($config_types=array(), $includeDisabled=false)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
if(empty($password)) $table
static loadUserConfig($userid)