本文整理汇总了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();
}
示例2: UniqueAnswerNoOption
/**
* Constructor
*/
function UniqueAnswerNoOption()
{
//this is highly important
parent::question();
$this->type = UNIQUE_ANSWER_NO_OPTION;
$this->isContent = $this->getIsContent();
}
示例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'));
}
示例4: OralExpression
/**
* Constructor
*/
function OralExpression()
{
parent::question();
$this->type = ORAL_EXPRESSION;
$this->isContent = $this->getIsContent();
}
示例5: __construct
public function __construct()
{
parent::question();
$this->type = MEDIA_QUESTION;
}
示例6: HotSpot
function HotSpot()
{
parent::question();
$this->type = HOT_SPOT;
}
示例7: GlobalMultipleAnswer
/**
*
*/
public function GlobalMultipleAnswer()
{
parent::question();
$this->type = GLOBAL_MULTIPLE_ANSWER;
$this->isContent = $this->getIsContent();
}
示例8: MultipleAnswerCombination
/**
* Constructor
*/
public function MultipleAnswerCombination()
{
parent::question();
$this->type = MULTIPLE_ANSWER_COMBINATION;
$this->isContent = $this->getIsContent();
}
示例9: CalculatedAnswer
/**
* Constructor
*/
public function CalculatedAnswer()
{
parent::question();
$this->type = CALCULATED_ANSWER;
$this->isContent = $this->getIsContent();
}
示例10: FillBlanks
/**
* Constructor
*/
public function FillBlanks()
{
parent::question();
$this->type = FILL_IN_BLANKS;
$this->isContent = $this->getIsContent();
}
示例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;
}
示例12: __construct
/**
* Constructor
*/
public function __construct()
{
parent::question();
$this->type = FREE_ANSWER;
$this->isContent = $this->getIsContent();
}
示例13: Matching
/**
* Constructor
*/
function Matching()
{
parent::question();
$this->type = MATCHING;
$this->isContent = $this->getIsContent();
}
示例14: FreeAnswer
/**
* Constructor
*/
function FreeAnswer()
{
parent::question();
$this->type = FREE_ANSWER;
$this->isContent = $this->getIsContent();
}
示例15: MultipleAnswer
/**
* Constructor
*/
function MultipleAnswer()
{
parent::question();
$this->type = MULTIPLE_ANSWER;
$this->isContent = $this->getIsContent();
}