| @@ 33-39 (lines=7) @@ | ||
| 30 | public function makeTreeItems($key, &$ret, $prefix_orig, $prefix_curr = '', $tags = null) |
|
| 31 | { |
|
| 32 | if ($key > 0) { |
|
| 33 | if (count($tags) > 0) { |
|
| 34 | foreach ($tags as $tag) { |
|
| 35 | $ret[$key][$tag] = $this->_tree[$key]['obj']->getVar($tag); |
|
| 36 | } |
|
| 37 | } else { |
|
| 38 | $ret[$key]['page_title'] = $this->_tree[$key]['obj']->getVar('page_title'); |
|
| 39 | } |
|
| 40 | $ret[$key]['prefix'] = $prefix_curr; |
|
| 41 | $prefix_curr .= $prefix_orig; |
|
| 42 | } |
|
| @@ 101-107 (lines=7) @@ | ||
| 98 | if (isset($this->_tree[$key]['child'])) { |
|
| 99 | foreach ($this->_tree[$key]['child'] as $childkey) { |
|
| 100 | if (isset($this->_tree[$childkey]['obj'])): |
|
| 101 | if (count($tags) > 0) { |
|
| 102 | foreach ($tags as $tag) { |
|
| 103 | $ret['child'][$childkey][$tag] = $this->_tree[$childkey]['obj']->getVar($tag); |
|
| 104 | } |
|
| 105 | } else { |
|
| 106 | $ret['child'][$childkey]['page_title'] = $this->_tree[$childkey]['obj']->getVar('page_title'); |
|
| 107 | } |
|
| 108 | endif; |
|
| 109 | ||
| 110 | $this->getAllChildArray($childkey, $ret['child'][$childkey], $tags, $depth); |
|