mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
QuickForm: add onRequest hook
This commit is contained in:
parent
eb1d4c67b0
commit
7ebb2dcdc9
@ -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…
x
Reference in New Issue
Block a user