| @@ 20-29 (lines=10) @@ | ||
| 17 | * Construct model with default values |
|
| 18 | * @param array $configs |
|
| 19 | */ |
|
| 20 | public function __construct(array $configs) |
|
| 21 | { |
|
| 22 | foreach ($configs as $property => $value) { |
|
| 23 | if (property_exists($this, $property)) { |
|
| 24 | $this->$property = $value; |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||
| 28 | parent::__construct(); |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * Labels |
|
| @@ 20-29 (lines=10) @@ | ||
| 17 | * Construct model with default values |
|
| 18 | * @param array $configs |
|
| 19 | */ |
|
| 20 | public function __construct(array $configs) |
|
| 21 | { |
|
| 22 | foreach ($configs as $property => $value) { |
|
| 23 | if (property_exists($this, $property)) { |
|
| 24 | $this->$property = $value; |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||
| 28 | parent::__construct(); |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * Labels for admin settings form |
|