Added method to baseForm for modify property of a form class
This commit is contained in:
parent
ad4655a376
commit
0f000fff25
1 changed files with 12 additions and 0 deletions
|
|
@ -44,6 +44,18 @@ class BaseForm {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function set_parameters(array $parameters)
|
||||||
|
{
|
||||||
|
|
||||||
|
foreach($parameters as $property => $value)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->$property=$value;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Static method where is registered the js necessary for a field
|
* Static method where is registered the js necessary for a field
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue