| @@ 1446-1454 (lines=9) @@ | ||
| 1443 | { |
|
| 1444 | foreach ($container->getComponents() as $name => $control) { |
|
| 1445 | if ($control instanceof Nette\Forms\IControl) { |
|
| 1446 | if (array_key_exists($name, $values)) { |
|
| 1447 | try { |
|
| 1448 | $control->setValue($values[$name]); |
|
| 1449 | } catch (Nette\InvalidArgumentException $e) { |
|
| 1450 | if ($this->strict_session_filter_values) { |
|
| 1451 | throw $e; |
|
| 1452 | } |
|
| 1453 | } |
|
| 1454 | } |
|
| 1455 | ||
| 1456 | } elseif ($control instanceof Nette\Forms\Container) { |
|
| 1457 | if (array_key_exists($name, $values)) { |
|
| @@ 1457-1465 (lines=9) @@ | ||
| 1454 | } |
|
| 1455 | ||
| 1456 | } elseif ($control instanceof Nette\Forms\Container) { |
|
| 1457 | if (array_key_exists($name, $values)) { |
|
| 1458 | try { |
|
| 1459 | $control->setValue($values[$name]); |
|
| 1460 | } catch (Nette\InvalidArgumentException $e) { |
|
| 1461 | if ($this->strict_session_filter_values) { |
|
| 1462 | throw $e; |
|
| 1463 | } |
|
| 1464 | } |
|
| 1465 | } |
|
| 1466 | } |
|
| 1467 | } |
|
| 1468 | } |
|