Added simple method for set properties in BaseForm objects
This commit is contained in:
parent
b0b3292539
commit
afafa75504
1 changed files with 12 additions and 0 deletions
|
|
@ -2291,6 +2291,18 @@ class Webmodel {
|
|||
}
|
||||
}
|
||||
|
||||
public function set_field($field,array $parameters)
|
||||
{
|
||||
|
||||
foreach($parameters as $property => $value)
|
||||
{
|
||||
|
||||
$this->components[$field]->$property=$value;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue