3
* Special prefs handling for the 'task_alarms_select' preference.
5
* Copyright 2012-2013 Horde LLC (http://www.horde.org/)
7
* See the enclosed file COPYING for license information (GPL). If you
8
* did not receive this file, see http://www.horde.org/licenses/gpl.
10
* @author Michael Slusarz <slusarz@horde.org>
12
* @license http://www.horde.org/licenses/gpl GPL
15
class Nag_Prefs_Special_TaskAlarms implements Horde_Core_Prefs_Ui_Special
19
public function init(Horde_Core_Prefs_Ui $ui)
21
Horde_Core_Prefs_Ui_Widgets::alarmInit();
26
public function display(Horde_Core_Prefs_Ui $ui)
28
return Horde_Core_Prefs_Ui_Widgets::alarm(array(
29
'label' => _("Choose how you want to receive reminders for tasks with alarms:"),
30
'pref' => 'task_alarms'
36
public function update(Horde_Core_Prefs_Ui $ui)
38
$data = Horde_Core_Prefs_Ui_Widgets::alarmUpdate($ui, array('pref' => 'task_alarms'));
43
$GLOBALS['prefs']->setValue('task_alarms', serialize($data));