/** * 问题类型 * @param $gameId 游戏ID * $gameId=0即查询所有问题分类 */ private function getQuestionTypes($gameId) { $dao = new QuestionTypesModel(); return $dao->getQuestionTypes($gameId); }
/** * 问题类型 */ public function question_types() { if ($this->gmae_id) { $dao = new QuestionTypesModel(); $list = $dao->getQuestionTypes($this->gmae_id); $this->ajaxReturn($list); } else { $this->ajaxReturn(NULL, "NO_FIND", 0); } }