本文整理汇总了PHP中question_engine_data_mapper::load_used_variants方法的典型用法代码示例。如果您正苦于以下问题:PHP question_engine_data_mapper::load_used_variants方法的具体用法?PHP question_engine_data_mapper::load_used_variants怎么用?PHP question_engine_data_mapper::load_used_variants使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类question_engine_data_mapper
的用法示例。
在下文中一共展示了question_engine_data_mapper::load_used_variants方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load_used_variants
/**
* Get the number of times each variant has been used for each question in a list
* in a set of usages.
* @param array $questionids of question ids.
* @param qubaid_condition $qubaids ids of the usages to consider.
* @return array questionid => variant number => num uses.
*/
public static function load_used_variants(array $questionids, qubaid_condition $qubaids)
{
$dm = new question_engine_data_mapper();
return $dm->load_used_variants($questionids, $qubaids);
}