本文整理汇总了PHP中question_usage_by_activity::get_question_mark方法的典型用法代码示例。如果您正苦于以下问题:PHP question_usage_by_activity::get_question_mark方法的具体用法?PHP question_usage_by_activity::get_question_mark怎么用?PHP question_usage_by_activity::get_question_mark使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类question_usage_by_activity
的用法示例。
在下文中一共展示了question_usage_by_activity::get_question_mark方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: check_current_mark
protected function check_current_mark($mark)
{
if (is_null($mark)) {
$this->assertNull($this->quba->get_question_mark($this->slot));
} else {
if ($mark == 0) {
// PHP will think a null mark and a mark of 0 are equal,
// so explicity check not null in this case.
$this->assertNotNull($this->quba->get_question_mark($this->slot));
}
$this->assertEquals($mark, $this->quba->get_question_mark($this->slot), 'Expected mark and actual mark differ.', 1.0E-6);
}
}
示例2: get_slot_mark
/**
* Gets the mark for a slot from the quba
*
* @param int $slot
* @return number|null
*/
public function get_slot_mark($slot)
{
return $this->quba->get_question_mark($slot);
}