@@ 185-191 (lines=7) @@ | ||
182 | * @return AbstractNode |
|
183 | * @uses $this->getChild() |
|
184 | */ |
|
185 | public function nextChild($id) |
|
186 | { |
|
187 | $child = $this->getChild($id); |
|
188 | $next = $this->children[$child->id()]['next']; |
|
189 | ||
190 | return $this->getChild($next); |
|
191 | } |
|
192 | ||
193 | /** |
|
194 | * Attempts to get the previous child. |
|
@@ 200-206 (lines=7) @@ | ||
197 | * @return AbstractNode |
|
198 | * @uses $this->getChild() |
|
199 | */ |
|
200 | public function previousChild($id) |
|
201 | { |
|
202 | $child = $this->getchild($id); |
|
203 | $next = $this->children[$child->id()]['prev']; |
|
204 | ||
205 | return $this->getChild($next); |
|
206 | } |
|
207 | ||
208 | /** |
|
209 | * Checks if the given node id is a child of the |