Exemplo n.º 1
0
 /**
  * Load a {@link question_usage_by_activity} from the database, based on its id.
  * @param int $qubaid the id of the usage to load.
  * @param moodle_database $db a database connectoin. Defaults to global $DB.
  * @return question_usage_by_activity loaded from the database.
  */
 public static function load_questions_usage_by_activity($qubaid, moodle_database $db = null)
 {
     $dm = new question_engine_data_mapper($db);
     return $dm->load_questions_usage_by_activity($qubaid);
 }
Exemplo n.º 2
0
 /**
  * Load a {@link question_usage_by_activity} from the database, based on its id.
  * @param int $qubaid the id of the usage to load.
  * @return question_usage_by_activity loaded from the database.
  */
 public static function load_questions_usage_by_activity($qubaid) {
     $dm = new question_engine_data_mapper();
     return $dm->load_questions_usage_by_activity($qubaid);
 }