| @@ 1501-1509 (lines=9) @@ | ||
| 1498 | { |
|
| 1499 | foreach ($container->getComponents() as $name => $control) { |
|
| 1500 | if ($control instanceof Nette\Forms\IControl) { |
|
| 1501 | if (array_key_exists($name, $values)) { |
|
| 1502 | try { |
|
| 1503 | $control->setValue($values[$name]); |
|
| 1504 | } catch (Nette\InvalidArgumentException $e) { |
|
| 1505 | if ($this->strict_session_filter_values) { |
|
| 1506 | throw $e; |
|
| 1507 | } |
|
| 1508 | } |
|
| 1509 | } |
|
| 1510 | ||
| 1511 | } elseif ($control instanceof Nette\Forms\Container) { |
|
| 1512 | if (array_key_exists($name, $values)) { |
|
| @@ 1512-1520 (lines=9) @@ | ||
| 1509 | } |
|
| 1510 | ||
| 1511 | } elseif ($control instanceof Nette\Forms\Container) { |
|
| 1512 | if (array_key_exists($name, $values)) { |
|
| 1513 | try { |
|
| 1514 | $control->setValues($values[$name]); |
|
| 1515 | } catch (Nette\InvalidArgumentException $e) { |
|
| 1516 | if ($this->strict_session_filter_values) { |
|
| 1517 | throw $e; |
|
| 1518 | } |
|
| 1519 | } |
|
| 1520 | } |
|
| 1521 | } |
|
| 1522 | } |
|
| 1523 | } |
|