@@ 1844-1849 (lines=6) @@ | ||
1841 | return array('list', ' ', $current->arguments); |
|
1842 | } |
|
1843 | ||
1844 | if (isset($current->store[$name])) |
|
1845 | return $current->store[$name]; |
|
1846 | else { |
|
1847 | $current = isset($current->storeParent) ? |
|
1848 | $current->storeParent : $current->parent; |
|
1849 | } |
|
1850 | } |
|
1851 | ||
1852 | $this->throwError("variable $name is undefined"); |
@@ 1483-1487 (lines=5) @@ | ||
1480 | if (is_null($env)) $env = $this->getStoreEnv(); |
|
1481 | if (is_null($defaultValue)) $defaultValue = self::$defaultValue; |
|
1482 | ||
1483 | if (isset($env->store[$name])) { |
|
1484 | return $env->store[$name]; |
|
1485 | } elseif (isset($env->parent)) { |
|
1486 | return $this->get($name, $defaultValue, $env->parent); |
|
1487 | } |
|
1488 | ||
1489 | return $defaultValue; // found nothing |
|
1490 | } |