mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-20 04:14:24 +02:00
monitoring: Use @inheritdoc in DeleteDowntimeCommandForm
This commit is contained in:
parent
455d2cee69
commit
72c3337be8
@ -13,17 +13,15 @@ use Icinga\Web\Notification;
|
|||||||
class DeleteDowntimeCommandForm extends CommandForm
|
class DeleteDowntimeCommandForm extends CommandForm
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* (non-PHPDoc)
|
* {@inheritdoc}
|
||||||
* @see \Zend_Form::init() For the method documentation.
|
|
||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$this->setAttrib('class', 'inline');
|
$this->setAttrib('class', 'inline');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (non-PHPDoc)
|
* {@inheritdoc}
|
||||||
* @see \Icinga\Web\Form::createElements() For the method documentation.
|
|
||||||
*/
|
*/
|
||||||
public function createElements(array $formData = array())
|
public function createElements(array $formData = array())
|
||||||
{
|
{
|
||||||
@ -57,10 +55,9 @@ class DeleteDowntimeCommandForm extends CommandForm
|
|||||||
);
|
);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (non-PHPDoc)
|
* {@inheritdoc}
|
||||||
* @see \Icinga\Web\Form::addSubmitButton() For the method documentation.
|
|
||||||
*/
|
*/
|
||||||
public function addSubmitButton()
|
public function addSubmitButton()
|
||||||
{
|
{
|
||||||
@ -79,10 +76,9 @@ class DeleteDowntimeCommandForm extends CommandForm
|
|||||||
);
|
);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (non-PHPDoc)
|
* {@inheritdoc}
|
||||||
* @see \Icinga\Web\Form::onSuccess() For the method documentation.
|
|
||||||
*/
|
*/
|
||||||
public function onSuccess()
|
public function onSuccess()
|
||||||
{
|
{
|
||||||
@ -90,7 +86,7 @@ class DeleteDowntimeCommandForm extends CommandForm
|
|||||||
$cmd->setDowntimeId($this->getElement('downtime_id')->getValue());
|
$cmd->setDowntimeId($this->getElement('downtime_id')->getValue());
|
||||||
$cmd->setIsService($this->getElement('downtime_is_service')->getValue());
|
$cmd->setIsService($this->getElement('downtime_is_service')->getValue());
|
||||||
$this->getTransport($this->request)->send($cmd);
|
$this->getTransport($this->request)->send($cmd);
|
||||||
|
|
||||||
$redirect = $this->getElement('redirect')->getValue();
|
$redirect = $this->getElement('redirect')->getValue();
|
||||||
if (! empty($redirect)) {
|
if (! empty($redirect)) {
|
||||||
$this->setRedirectUrl($redirect);
|
$this->setRedirectUrl($redirect);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user