Revision #11                                    has been created by  Alex D.                                    on Oct 15, 2011, 9:48:54 PM with the memo:
 Alex D.                                    on Oct 15, 2011, 9:48:54 PM with the memo:
                                
                                
                                    correction                                
                                                                    « previous (#10)                                                                                                    next (#12) »                                                            
                            Changes
                            
    Title
    unchanged
    Creating a database-driven hierarchical Structure combined with CMenu and superfish
    Category
    unchanged
    Tutorials
    Yii version
    unchanged
    
    Tags
    unchanged
    menu
    Content
    changed
    [...]
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;
}
```[...]