mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
QuickForm: add getSentValue() helper method
This commit is contained in:
parent
4a1cdd093c
commit
fa8dbaadfc
@ -97,6 +97,17 @@ abstract class QuickForm extends Zend_Form
|
|||||||
$this->getElement(self::ID)->setIgnore(true);
|
$this->getElement(self::ID)->setIgnore(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getSentValue($name, $default = null)
|
||||||
|
{
|
||||||
|
$request = $this->getRequest();
|
||||||
|
|
||||||
|
if ($request->isPost()) {
|
||||||
|
return $request->getPost($name);
|
||||||
|
} else {
|
||||||
|
return $default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function getSubmitLabel()
|
public function getSubmitLabel()
|
||||||
{
|
{
|
||||||
if ($this->submitLabel === null) {
|
if ($this->submitLabel === null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user