mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-05-28 04:35:53 -04:00
QuickForm: add onRequest hook
This commit is contained in:
parent
eb1d4c67b0
commit
7ebb2dcdc9
1 changed files with 12 additions and 1 deletions
|
|
@ -338,10 +338,21 @@ abstract class QuickForm extends Zend_Form
|
|||
Icinga::app()->getFrontController()->getResponse()->redirectAndExit($url);
|
||||
}
|
||||
|
||||
protected function onRequest()
|
||||
{
|
||||
}
|
||||
|
||||
public function setRequest(Request $request)
|
||||
{
|
||||
$this->request = $request;
|
||||
$this->onRequest();
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRequest()
|
||||
{
|
||||
if ($this->request === null) {
|
||||
$this->request = Icinga::app()->getFrontController()->getRequest();
|
||||
$this->setRequest(Icinga::app()->getFrontController()->getRequest());
|
||||
}
|
||||
return $this->request;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue