monitoring: Use @inheritdoc in DeleteDowntimeCommandForm

This commit is contained in:
Eric Lippmann 2015-07-28 13:31:43 +02:00
parent 455d2cee69
commit 72c3337be8

View File

@ -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);