public function fetchAllByAllPid() { $return = array(); $roots = parent::fetchAll("`pid` = 0 ORDER BY `sort` ASC"); foreach ($roots as $root) { $root["child"] = parent::fetchAll("`pid` = {$root["id"]} ORDER BY `sort` ASC"); $return[$root["id"]] = $root; } return $return; }
public function fetchAllOrderDateline() { return parent::fetchAll(array("order" => "dateline DESC")); }
public function fetchAllRootMenu() { $condition = "pid = 0 AND disabled = 0"; $result = parent::fetchAll($condition); return $result; }