mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-24 06:14:26 +02:00
QuickForm: add onSetup helper
This commit is contained in:
parent
8267e377ea
commit
eb6fda1eb1
@ -54,6 +54,7 @@ abstract class QuickForm extends Zend_Form
|
|||||||
$this->createIdElement();
|
$this->createIdElement();
|
||||||
$this->regenerateCsrfToken();
|
$this->regenerateCsrfToken();
|
||||||
$this->setup();
|
$this->setup();
|
||||||
|
$this->onSetup();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function createIdElement()
|
protected function createIdElement()
|
||||||
@ -99,6 +100,10 @@ abstract class QuickForm extends Zend_Form
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function onSetup()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public function setAction($action)
|
public function setAction($action)
|
||||||
{
|
{
|
||||||
if (! $action instanceof Url) {
|
if (! $action instanceof Url) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user