3require_once 
'Services/Form/classes/class.ilPropertyFormGUI.php';
 
   14        $lng->loadLanguageModule(
'notification');
 
   19            'set_by_user' => 
$lng->txt(
'set_by_user'),
 
   20            'set_by_admin' => 
$lng->txt(
'set_by_admin'),
 
   21            'disabled' => 
$lng->txt(
'disabled'),
 
   24        foreach ($types as 
$type) {
 
   27            $select->setValue(
$type[
'config_type']);
 
   28            $form->addItem($select);
 
   41            'set_by_user' => 
$lng->txt(
'set_by_user'),
 
   42            'set_by_admin' => 
$lng->txt(
'set_by_admin'),
 
   43            'disabled' => 
$lng->txt(
'disabled'),
 
   46        foreach ($types as 
$type) {
 
   49            $select->setValue(
$type[
'config_type']);
 
   50            $form->addItem($select);
 
   61        require_once 
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
 
   66            'set_by_user' => 
$lng->txt(
'set_by_user'),
 
   67            'set_by_admin' => 
$lng->txt(
'set_by_admin'),
 
   73        $form->restored_values = array();
 
   74        $store_values = array();
 
   75        foreach ($channels as $channel) {
 
   78            $store_values[] = 
'enable_' . $channel[
'name'];
 
   80            $select = 
new ilSelectInputGUI(
$lng->txt(
'config_type'), 
'notifications[' . $channel[
'name'] . 
']');
 
   82            $select->setValue($channel[
'config_type']);
 
   83            $chb->addSubItem($select);
 
   88            $form->restored_values[
'notifications[' . $channel[
'name'] . 
']'] = $channel[
'config_type'];
 
   89            require_once $channel[
'include'];
 
   93            $result = call_user_func(array($channel[
'handler'], 
'showSettings'), $chb);
 
   95                $store_values = array_merge(
$result, $store_values);
 
  105        $form->store_values = $store_values;
 
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
An exception for terminatinating execution or to throw for unit testing.
static getAvailableChannels($config_types=array(), $includeDisabled=false)
if(isset($_POST['submit'])) $form