@@ 2680-2684 (lines=5) @@ | ||
2677 | foreach (explode('.', ltrim($m[2], '.')) as $part) { |
|
2678 | $key .= '[' . var_export($part, true) . ']'; |
|
2679 | } |
|
2680 | if ($curBlock === 'root') { |
|
2681 | $output = $key; |
|
2682 | } else { |
|
2683 | $output = '(isset(' . $key . ')?' . $key . ':null)'; |
|
2684 | } |
|
2685 | } elseif (preg_match('#dwoo\\.const\\.([a-z0-9\\\\_:]+)#i', $key, $m)) { |
|
2686 | return $this->parseConstKey($m[1], $curBlock); |
|
2687 | } elseif ($this->scope !== null) { |
|
@@ 2697-2703 (lines=7) @@ | ||
2694 | $output = '$this->readParentVar(1)'; |
|
2695 | } elseif ($key === '_key') { |
|
2696 | $output = '$tmp_key'; |
|
2697 | } else { |
|
2698 | if ($curBlock === 'root') { |
|
2699 | $output = '$this->scope["' . $key . '"]'; |
|
2700 | } else { |
|
2701 | $output = '(isset($this->scope["' . $key . '"]) ? $this->scope["' . $key . '"] : null)'; |
|
2702 | } |
|
2703 | } |
|
2704 | } else { |
|
2705 | preg_match_all('#(\[|->|\.)?((?:[a-z0-9_]|-(?!>))+|(\\\?[\'"])[^\3]*?\3)\]?#i', $key, $m); |
|
2706 |