1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| $DAO = $this->modsDAO; $DAO = $DAO->leftJoin($this->mods_typeDAO,array('mods_type_id'=>'id')); $DAO = $DAO->leftJoin($this->gameDAO, array(array('game_id'=>'id'))); $DAO = $DAO->leftJoin($this->userDAO, array(array('mods_publish'=>'id')));
$DAO = $DAO->filter(['mods' => array('!='=>array('mods_state'=>array(-1, -2,-5)))]); $DAO = $DAO->filter(['mods' => array('mods_type_id'=>$modsType_id)]);
$data = $DAO->limit(20, ($pageIndex-1) * 20)->query(array( 'mods' => array('id','game_id','mods_type_id','mods_title','mods_image_url','mods_desc','mods_click_cnt','mods_download_cnt'), 'mods_type' => array('mods_type_name'), 'game' => array('game_path','game_name','game_imgUrl'), 'user' => array('user_nickName') ));
|