QuickForm: add onSetup helper

This commit is contained in:
Thomas Gelf 2015-06-24 10:07:30 +02:00
parent 8267e377ea
commit eb6fda1eb1

View File

@ -54,6 +54,7 @@ abstract class QuickForm extends Zend_Form
$this->createIdElement();
$this->regenerateCsrfToken();
$this->setup();
$this->onSetup();
}
protected function createIdElement()
@ -99,6 +100,10 @@ abstract class QuickForm extends Zend_Form
{
}
protected function onSetup()
{
}
public function setAction($action)
{
if (! $action instanceof Url) {