From 3d0a74bfdbe80e375d84578a4485a2f347020c8a Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 4 Sep 2014 13:04:54 +0200 Subject: [PATCH] monitoring/commands: Add `ToggleNotificationsCommandForm' `ToggleNotificationsCommandForm' is the form for enabling/disabling host and service notifications on an Icinga instance. refs #6593 --- .../ToggleNotificationsCommandForm.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 modules/monitoring/application/forms/Command/Instance/ToggleNotificationsCommandForm.php diff --git a/modules/monitoring/application/forms/Command/Instance/ToggleNotificationsCommandForm.php b/modules/monitoring/application/forms/Command/Instance/ToggleNotificationsCommandForm.php new file mode 100644 index 000000000..661d57dc5 --- /dev/null +++ b/modules/monitoring/application/forms/Command/Instance/ToggleNotificationsCommandForm.php @@ -0,0 +1,33 @@ +setSubmitLabel(mt('monitoring', 'Toggle Notifications')); + $this->setFeature('notifications_enabled', mt('monitoring', 'Notifications Enabled')); + } + + /** + * Get the command which is to be sent to an Icinga instance + * + * @return ToggleNotifications + */ + public function getCommand() + { + return new ToggleNotifications(); + } +}