| @@ 1553-1561 (lines=9) @@ | ||
| 1550 | { |
|
| 1551 | foreach ($container->getComponents() as $name => $control) { |
|
| 1552 | if ($control instanceof Nette\Forms\IControl) { |
|
| 1553 | if (array_key_exists($name, $values)) { |
|
| 1554 | try { |
|
| 1555 | $control->setValue($values[$name]); |
|
| 1556 | } catch (Nette\InvalidArgumentException $e) { |
|
| 1557 | if ($this->strict_session_filter_values) { |
|
| 1558 | throw $e; |
|
| 1559 | } |
|
| 1560 | } |
|
| 1561 | } |
|
| 1562 | ||
| 1563 | } elseif ($control instanceof Nette\Forms\Container) { |
|
| 1564 | if (array_key_exists($name, $values)) { |
|
| @@ 1564-1572 (lines=9) @@ | ||
| 1561 | } |
|
| 1562 | ||
| 1563 | } elseif ($control instanceof Nette\Forms\Container) { |
|
| 1564 | if (array_key_exists($name, $values)) { |
|
| 1565 | try { |
|
| 1566 | $control->setValues($values[$name]); |
|
| 1567 | } catch (Nette\InvalidArgumentException $e) { |
|
| 1568 | if ($this->strict_session_filter_values) { |
|
| 1569 | throw $e; |
|
| 1570 | } |
|
| 1571 | } |
|
| 1572 | } |
|
| 1573 | } |
|
| 1574 | } |
|
| 1575 | } |
|