@@ 104-110 (lines=7) @@ | ||
101 | { |
|
102 | $child = & $this->data; |
|
103 | ||
104 | foreach ($this->currentPath as $part) { |
|
105 | if (isset($child[$part])) { |
|
106 | $child = & $child[$part]; |
|
107 | } else { |
|
108 | return null; |
|
109 | } |
|
110 | } |
|
111 | ||
112 | return isset($child[$name]) ? $child[$name] : null; |
|
113 | } |
|
@@ 130-136 (lines=7) @@ | ||
127 | ||
128 | $child = $this->data; |
|
129 | ||
130 | foreach ($path as $part) { |
|
131 | if (isset($child[$part])) { |
|
132 | $child = $child[$part]; |
|
133 | } else { |
|
134 | return null; |
|
135 | } |
|
136 | } |
|
137 | ||
138 | return $child; |
|
139 | } |