/**
  * (non-PHPDoc)
  * @see \Icinga\Web\Form::onSuccess() For the method documentation.
  */
 public function onSuccess()
 {
     $disableNotifications = new DisableNotificationsExpireCommand();
     $disableNotifications->setExpireTime($this->getElement('expire_time')->getValue()->getTimestamp());
     $this->getTransport($this->request)->send($disableNotifications);
     Notification::success($this->translate('Disabling host and service notifications..'));
     return true;
 }
 public function renderDisableNotificationsExpire(DisableNotificationsExpireCommand $command)
 {
     return sprintf('%s;%u;%u', 'DISABLE_NOTIFICATIONS_EXPIRE_TIME', time(), $command->getExpireTime());
 }