/**
  * Constructor
  */
 public function UniqueAnswer()
 {
     //this is highly important
     parent::question();
     $this->type = UNIQUE_ANSWER;
     $this->isContent = $this->getIsContent();
 }
 /**
  * Constructor
  */
 function UniqueAnswerNoOption()
 {
     //this is highly important
     parent::question();
     $this->type = UNIQUE_ANSWER_NO_OPTION;
     $this->isContent = $this->getIsContent();
 }
 /**
  * Constructor
  */
 public function MultipleAnswerTrueFalse()
 {
     parent::question();
     $this->type = MULTIPLE_ANSWER_TRUE_FALSE;
     $this->isContent = $this->getIsContent();
     $this->options = array(1 => get_lang('True'), 2 => get_lang('False'), 3 => get_lang('DoubtScore'));
 }
 /**
  * Constructor
  */
 function OralExpression()
 {
     parent::question();
     $this->type = ORAL_EXPRESSION;
     $this->isContent = $this->getIsContent();
 }
 public function __construct()
 {
     parent::question();
     $this->type = MEDIA_QUESTION;
 }
示例#6
0
 function HotSpot()
 {
     parent::question();
     $this->type = HOT_SPOT;
 }
 /**
  *
  */
 public function GlobalMultipleAnswer()
 {
     parent::question();
     $this->type = GLOBAL_MULTIPLE_ANSWER;
     $this->isContent = $this->getIsContent();
 }
 /**
  * Constructor
  */
 public function MultipleAnswerCombination()
 {
     parent::question();
     $this->type = MULTIPLE_ANSWER_COMBINATION;
     $this->isContent = $this->getIsContent();
 }
 /**
  * Constructor
  */
 public function CalculatedAnswer()
 {
     parent::question();
     $this->type = CALCULATED_ANSWER;
     $this->isContent = $this->getIsContent();
 }
 /**
  * Constructor
  */
 public function FillBlanks()
 {
     parent::question();
     $this->type = FILL_IN_BLANKS;
     $this->isContent = $this->getIsContent();
 }
示例#11
0
 /**
  * 查询提问是否存在,并判断隐藏状态,解决状态
  * @param int $mem_id 提问用户id
  * @param int $que_id 提问id
  * @return int
  */
 public function existsQuestion($mem_id, $que_id)
 {
     //查询提问,判断隐藏状态
     $sql = 'select que_status,que_is_hidden,que_reward from question where mem_id=? and que_id=?';
     $question = $this->fetchOne($sql, [$mem_id, $que_id]);
     if (!$question || $question['que_is_hidden'] != 1) {
         return NOT_FOUND_DATA;
     }
     //是否解决
     if ($question['que_status'] == 1) {
         return QUESTION_SOLVE;
     }
     //赋值数据
     self::$question = $question;
     return OK;
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::question();
     $this->type = FREE_ANSWER;
     $this->isContent = $this->getIsContent();
 }
 /**
  * Constructor
  */
 function Matching()
 {
     parent::question();
     $this->type = MATCHING;
     $this->isContent = $this->getIsContent();
 }
 /**
  * Constructor
  */
 function FreeAnswer()
 {
     parent::question();
     $this->type = FREE_ANSWER;
     $this->isContent = $this->getIsContent();
 }
 /**
  * Constructor
  */
 function MultipleAnswer()
 {
     parent::question();
     $this->type = MULTIPLE_ANSWER;
     $this->isContent = $this->getIsContent();
 }