当前位置: 首页>>代码示例>>PHP>>正文


PHP Question::question方法代码示例

本文整理汇总了PHP中Question::question方法的典型用法代码示例。如果您正苦于以下问题:PHP Question::question方法的具体用法?PHP Question::question怎么用?PHP Question::question使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Question的用法示例。


在下文中一共展示了Question::question方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: UniqueAnswer

 /**
  * Constructor
  */
 public function UniqueAnswer()
 {
     //this is highly important
     parent::question();
     $this->type = UNIQUE_ANSWER;
     $this->isContent = $this->getIsContent();
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:10,代码来源:unique_answer.class.php

示例2: UniqueAnswerNoOption

 /**
  * Constructor
  */
 function UniqueAnswerNoOption()
 {
     //this is highly important
     parent::question();
     $this->type = UNIQUE_ANSWER_NO_OPTION;
     $this->isContent = $this->getIsContent();
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:10,代码来源:unique_answer_no_option.class.php

示例3: MultipleAnswerTrueFalse

 /**
  * 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'));
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:10,代码来源:multiple_answer_true_false.class.php

示例4: OralExpression

 /**
  * Constructor
  */
 function OralExpression()
 {
     parent::question();
     $this->type = ORAL_EXPRESSION;
     $this->isContent = $this->getIsContent();
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:9,代码来源:oral_expression.class.php

示例5: __construct

 public function __construct()
 {
     parent::question();
     $this->type = MEDIA_QUESTION;
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:5,代码来源:media_question.class.php

示例6: HotSpot

 function HotSpot()
 {
     parent::question();
     $this->type = HOT_SPOT;
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:5,代码来源:hotspot.class.php

示例7: GlobalMultipleAnswer

 /**
  *
  */
 public function GlobalMultipleAnswer()
 {
     parent::question();
     $this->type = GLOBAL_MULTIPLE_ANSWER;
     $this->isContent = $this->getIsContent();
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:9,代码来源:global_multiple_answer.class.php

示例8: MultipleAnswerCombination

 /**
  * Constructor
  */
 public function MultipleAnswerCombination()
 {
     parent::question();
     $this->type = MULTIPLE_ANSWER_COMBINATION;
     $this->isContent = $this->getIsContent();
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:9,代码来源:multiple_answer_combination.class.php

示例9: CalculatedAnswer

 /**
  * Constructor
  */
 public function CalculatedAnswer()
 {
     parent::question();
     $this->type = CALCULATED_ANSWER;
     $this->isContent = $this->getIsContent();
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:9,代码来源:calculated_answer.class.php

示例10: FillBlanks

 /**
  * Constructor
  */
 public function FillBlanks()
 {
     parent::question();
     $this->type = FILL_IN_BLANKS;
     $this->isContent = $this->getIsContent();
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:9,代码来源:fill_blanks.class.php

示例11: existsQuestion

 /**
  * 查询提问是否存在,并判断隐藏状态,解决状态
  * @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;
 }
开发者ID:xw716825,项目名称:work,代码行数:22,代码来源:Question.php

示例12: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     parent::question();
     $this->type = FREE_ANSWER;
     $this->isContent = $this->getIsContent();
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:9,代码来源:freeanswer.class.php

示例13: Matching

 /**
  * Constructor
  */
 function Matching()
 {
     parent::question();
     $this->type = MATCHING;
     $this->isContent = $this->getIsContent();
 }
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:9,代码来源:matching.class.php

示例14: FreeAnswer

 /**
  * Constructor
  */
 function FreeAnswer()
 {
     parent::question();
     $this->type = FREE_ANSWER;
     $this->isContent = $this->getIsContent();
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:9,代码来源:freeanswer.class.php

示例15: MultipleAnswer

 /**
  * Constructor
  */
 function MultipleAnswer()
 {
     parent::question();
     $this->type = MULTIPLE_ANSWER;
     $this->isContent = $this->getIsContent();
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:9,代码来源:multiple_answer.class.php


注:本文中的Question::question方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。