4require_once 
"./Services/Object/classes/class.ilObjectGUI.php";
 
    5require_once 
"./Services/Notifications/classes/class.ilObjNotificationAdmin.php";
 
    6require_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)
 
   29        $this->lng->loadLanguageModule(
'notification');
 
   39        $next_class = $this->ctrl->getNextClass($this);
 
   40        $cmd = $this->ctrl->getCmd();
 
   44        switch ($next_class) {
 
   45            case 'ilpermissiongui':
 
   46                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   48                $ret = &$this->ctrl->forwardCommand($perm_gui);
 
   53                $this->tabs_gui->activateTab(
"view");
 
   55                if (empty($cmd) || $cmd == 
'view') {
 
   75        require_once 
'Services/Notifications/classes/class.ilObjNotificationAdmin.php';
 
   77        $fileObj->setTitle(
'notification admin');
 
   79        $fileObj->createReference();
 
   87        $this->ctrl->setParameter($this, 
"ref_id", $this->ref_id);
 
   89        if ($this->access->checkAccess(
"visible", 
"", $this->ref_id)) {
 
   90            $this->ilTabs->addTab(
 
   92                $this->lng->txt(
"info_short"),
 
   93                $this->ctrl->getLinkTargetByClass(array(
"ilobjfilegui", 
"ilinfoscreengui"), 
"showSummary")
 
   97        if ($this->access->checkAccess(
"edit_permission", 
"", $this->ref_id)) {
 
   98            $this->tabs_gui->addTab(
 
  100                $this->lng->txt(
"perm_settings"),
 
  101                $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'), 
"perm")
 
  109        $this->tabs_gui->addSubTabTarget(
 
  110            "notification_general",
 
  111            $this->ctrl->getLinkTargetByClass(
'ilObjNotificationAdminGUI', 
"showGeneralSettings")
 
  114        $this->tabs_gui->addSubTabTarget(
 
  115            "notification_admin_types",
 
  116            $this->ctrl->getLinkTargetByClass(
'ilObjNotificationAdminGUI', 
"showTypes")
 
  119        $this->tabs_gui->addSubTabTarget(
 
  120            "notification_admin_matrix",
 
  121            $this->ctrl->getLinkTargetByClass(
'ilObjNotificationAdminGUI', 
"showConfigMatrix")
 
  127        if (is_object($this->
object)) {
 
  128            $this->locator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, 
""), 
"", 
$_GET[
"ref_id"]);
 
  134        require_once 
'Services/Notifications/classes/class.ilNotificationAdminSettingsForm.php';
 
  146            $form->setValuesByArray(array_merge(
$settings->getAll(), $form->restored_values));
 
  149        $form->setFormAction($this->ctrl->getFormAction($this, 
'saveGeneralSettings'));
 
  150        $form->addCommandButton(
'saveGeneralSettings', 
'save');
 
  151        $form->addCommandButton(
'showGeneralSettings', 
'cancel');
 
  153        $this->tpl->setContent($form->getHtml());
 
  158        require_once 
'Services/Notifications/classes/class.ilNotificationAdminSettingsForm.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) {
 
  190        $this->tabs_gui->activateSubTab(
'notification_admin_types');
 
  192        require_once 
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
 
  193        require_once 
'Services/Notifications/classes/class.ilNotificationAdminSettingsForm.php';
 
  196        $form->setFormAction($this->ctrl->getFormAction($this, 
'showTypes'));
 
  197        $form->addCommandButton(
'saveTypes', $this->lng->txt(
'save'));
 
  198        $form->addCommandButton(
'showTypes', $this->lng->txt(
'cancel'));
 
  199        $this->tpl->setContent($form->getHtml());
 
  204        $this->tabs_gui->activateSubTab(
'notification_admin_channels');
 
  206        require_once 
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
 
  207        require_once 
'Services/Notifications/classes/class.ilNotificationAdminSettingsForm.php';
 
  210        $form->setFormAction($this->ctrl->getFormAction($this, 
'showChannels'));
 
  211        $form->addCommandButton(
'saveChannels', $this->lng->txt(
'save'));
 
  212        $form->addCommandButton(
'showChannels', $this->lng->txt(
'cancel'));
 
  213        $this->tpl->setContent($form->getHtml());
 
  218        require_once 
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
 
  219        foreach ($_REQUEST[
'notifications'] as 
$type => $value) {
 
  227        require_once 
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
 
  228        foreach ($_REQUEST[
'notifications'] as 
$type => $value) {
 
  236        $this->tabs_gui->activateSubTab(
'notification_admin_matrix');
 
  238        require_once 
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
 
  239        require_once 
'Services/Notifications/classes/class.ilNotificationSettingsTable.php';
 
  244        $table->setFormAction($this->ctrl->getFormAction($this, 
'saveConfigMatrix'));
 
  246        $table->setDescription($this->lng->txt(
'notification_admin_matrix_settings_table_desc'));
 
  247        $table->addCommandButton(
'saveConfigMatrix', $this->lng->txt(
'save'));
 
  248        $table->addCommandButton(
'showConfigMatrix', $this->lng->txt(
'cancel'));
 
  250        $this->tpl->setContent($table->getHtml());
 
  255        require_once 
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
 
An exception for terminatinating execution or to throw for unit testing.
static getAvailableChannels($config_types=array(), $includeDisabled=false)
static loadUserConfig($userid)
static setConfigTypeForType($type_name, $config_name)
static getAvailableTypes($config_types=array())
static setUserConfig($userid, array $configArray)
Sets the configuration for all given configurations.
static setConfigTypeForChannel($channel_name, $config_name)
GUI class for notification objects.
static saveObject2($params=array())
save object
executeCommand()
execute command
setTabs()
set admin tabs @access public
addLocatorItems()
should be overwritten to add object specific items (repository items are preloaded)
saveGeneralSettingsObject()
__construct($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor @access public.
showGeneralSettingsObject($form=null)
Class ilObjNotificationAdmin.
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput($a_show_subobjects=true)
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc