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


PHP question_engine::get_behaviour_type方法代码示例

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


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

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->behaviourtype = question_engine::get_behaviour_type('interactivecountback');
 }
开发者ID:alanaipe2015,项目名称:moodle,代码行数:5,代码来源:behaviourtype_test.php

示例2: quiz_allows_multiple_tries

/**
 * Does this quiz allow multiple tries?
 *
 * @return bool
 */
function quiz_allows_multiple_tries($quiz)
{
    $bt = question_engine::get_behaviour_type($quiz->preferredbehaviour);
    return $bt->allows_multiple_submitted_responses();
}
开发者ID:dg711,项目名称:moodle,代码行数:10,代码来源:lib.php

示例3: get_summary_information

 /**
  * Get summary information about this usage.
  *
  * Some behaviours may be able to provide interesting summary information
  * about the attempt as a whole, and this method provides access to that data.
  * To see how this works, try setting a quiz to one of the CBM behaviours,
  * and then look at the extra information displayed at the top of the quiz
  * review page once you have sumitted an attempt.
  *
  * In the return value, the array keys are identifiers of the form
  * qbehaviour_behaviourname_meaningfullkey. For qbehaviour_deferredcbm_highsummary.
  * The values are arrays with two items, title and content. Each of these
  * will be either a string, or a renderable.
  *
  * @return array as described above.
  */
 public function get_summary_information(question_display_options $options)
 {
     return question_engine::get_behaviour_type($this->preferredbehaviour)->summarise_usage($this, $options);
 }
开发者ID:evltuma,项目名称:moodle,代码行数:20,代码来源:questionusage.php


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