| @@ 1511-1519 (lines=9) @@ | ||
| 1508 | { |
|
| 1509 | foreach ($container->getComponents() as $name => $control) { |
|
| 1510 | if ($control instanceof Nette\Forms\IControl) { |
|
| 1511 | if (array_key_exists($name, $values)) { |
|
| 1512 | try { |
|
| 1513 | $control->setValue($values[$name]); |
|
| 1514 | } catch (Nette\InvalidArgumentException $e) { |
|
| 1515 | if ($this->strict_session_filter_values) { |
|
| 1516 | throw $e; |
|
| 1517 | } |
|
| 1518 | } |
|
| 1519 | } |
|
| 1520 | ||
| 1521 | } elseif ($control instanceof Nette\Forms\Container) { |
|
| 1522 | if (array_key_exists($name, $values)) { |
|
| @@ 1522-1530 (lines=9) @@ | ||
| 1519 | } |
|
| 1520 | ||
| 1521 | } elseif ($control instanceof Nette\Forms\Container) { |
|
| 1522 | if (array_key_exists($name, $values)) { |
|
| 1523 | try { |
|
| 1524 | $control->setValues($values[$name]); |
|
| 1525 | } catch (Nette\InvalidArgumentException $e) { |
|
| 1526 | if ($this->strict_session_filter_values) { |
|
| 1527 | throw $e; |
|
| 1528 | } |
|
| 1529 | } |
|
| 1530 | } |
|
| 1531 | } |
|
| 1532 | } |
|
| 1533 | } |
|