コード例 #1
0
ファイル: Syscode.php プロジェクト: AxelPanda/ibos
 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;
 }
コード例 #2
0
ファイル: IpBanned.php プロジェクト: AxelPanda/ibos
 public function fetchAllOrderDateline()
 {
     return parent::fetchAll(array("order" => "dateline DESC"));
 }
コード例 #3
0
ファイル: Menu.php プロジェクト: AxelPanda/ibos
 public function fetchAllRootMenu()
 {
     $condition = "pid = 0 AND disabled = 0";
     $result = parent::fetchAll($condition);
     return $result;
 }