Creating a database-driven hierarchical Structure combined with CMenu and superfish

Comparing #10 with #11

Revision #11 was created by Alex D. Alex D. on Oct 15, 2011, 9:48:54 PM.

correction

Content

[...]
public function getListed() {
$subitems = array();
if($this->childs) foreach($this->childs as $child) {
$subitems[] = $child->getListed();
}
$returnarray = array('label' => $this->
headlintitle, 'url' => array('Hierarchy/view', 'id' => $this->id));
if($subitems != array())
$returnarray = array_merge($returnarray, array('items' => $subitems));
return $returnarray;
}
```
[...]