$res=$DBc->sqlQuery("SELECT * FROM ach_category LEFT JOIN (ach_category_lang) ON (acl_lang='".$_USER->getLang()."' AND acl_category=ac_id) WHERE ac_parent IS NULL ORDER by ac_order ASC, acl_name ASC");
$sz=sizeof($res);
for($i=0;$i<$sz;$i++){
$res[$i]['open']=$open;
$this->addChild($this->makeChild($res[$i]));
}
}
functiongetOpen(){// just returns the previously set ID of the currently open MenuNode
return$this->open;
}
functiongetOpenCat(){// finds the currently open MenuNode and returns it's ID. If not found the result will be 0 instead.