Home
last modified time | relevance | path

Searched refs:qubaid (Results 1 – 25 of 39) sorted by relevance

12

/dports/www/moodle310/moodle/question/engine/
H A Dlib.php78 * @param int $qubaid the id of the usage to load.
84 return $dm->load_questions_usage_by_activity($qubaid);
106 * @param int $qubaid the id of the usage to delete.
108 public static function delete_questions_usage_by_activity($qubaid) { argument
136 * @param int $qubaid the question_usage id.
140 public static function is_manual_grade_in_range($qubaid, $slot) { argument
141 $prefix = 'q' . $qubaid . ':' . $slot . '_';
676 * @param int $qubaid the question usage id.
698 $qubaid = $qa->get_usage_id();
709 * @param int $qubaid the question usage id.
[all …]
H A Ddatalib.php431 * @param int $qubaid the id of the usage to load.
434 public function load_questions_usage_by_activity($qubaid) { argument
475 ", array('qubaid' => $qubaid));
478 throw new coding_exception('Failed to load questions_usage_by_activity ' . $qubaid);
481 $quba = question_usage_by_activity::load_from_records($records, $qubaid);
543 …$qubas[$record->qubaid] = question_usage_by_activity::load_from_records($records, $record->qubaid);
1095 * @param int $qubaid the question usage id.
1103 'questionusageid' => $qubaid, 'questionid' => $questionid, 'slot' => $slot))) {
1184 * @param string $qubaid SQL fragment that controls which usage is summed.
1189 public function sum_usage_marks_subquery($qubaid) { argument
[all …]
H A Dquestionusage.php928 * @param int $qubaid The id of the question usage we are loading.
931 public static function load_from_records($records, $qubaid) { argument
933 while ($record->qubaid != $qubaid) {
936 throw new coding_exception("Question usage {$qubaid} not found in the database.");
943 $quba->set_id_from_database($record->qubaid);
956 while ($record && $record->qubaid == $qubaid && !is_null($record->slot)) {
/dports/www/moodle311/moodle/question/engine/
H A Dlib.php78 * @param int $qubaid the id of the usage to load.
84 return $dm->load_questions_usage_by_activity($qubaid);
106 * @param int $qubaid the id of the usage to delete.
108 public static function delete_questions_usage_by_activity($qubaid) { argument
136 * @param int $qubaid the question_usage id.
140 public static function is_manual_grade_in_range($qubaid, $slot) { argument
141 $prefix = 'q' . $qubaid . ':' . $slot . '_';
684 * @param int $qubaid the question usage id.
706 $qubaid = $qa->get_usage_id();
717 * @param int $qubaid the question usage id.
[all …]
H A Ddatalib.php431 * @param int $qubaid the id of the usage to load.
434 public function load_questions_usage_by_activity($qubaid) { argument
475 ", array('qubaid' => $qubaid));
478 throw new coding_exception('Failed to load questions_usage_by_activity ' . $qubaid);
481 $quba = question_usage_by_activity::load_from_records($records, $qubaid);
543 …$qubas[$record->qubaid] = question_usage_by_activity::load_from_records($records, $record->qubaid);
1095 * @param int $qubaid the question usage id.
1103 'questionusageid' => $qubaid, 'questionid' => $questionid, 'slot' => $slot))) {
1184 * @param string $qubaid SQL fragment that controls which usage is summed.
1189 public function sum_usage_marks_subquery($qubaid) { argument
[all …]
H A Dquestionusage.php928 * @param int $qubaid The id of the question usage we are loading.
931 public static function load_from_records($records, $qubaid) { argument
933 while ($record->qubaid != $qubaid) {
936 throw new coding_exception("Question usage {$qubaid} not found in the database.");
943 $quba->set_id_from_database($record->qubaid);
956 while ($record && $record->qubaid == $qubaid && !is_null($record->slot)) {
/dports/www/moodle39/moodle/question/engine/
H A Dlib.php78 * @param int $qubaid the id of the usage to load.
84 return $dm->load_questions_usage_by_activity($qubaid);
106 * @param int $qubaid the id of the usage to delete.
108 public static function delete_questions_usage_by_activity($qubaid) { argument
136 * @param int $qubaid the question_usage id.
140 public static function is_manual_grade_in_range($qubaid, $slot) { argument
141 $prefix = 'q' . $qubaid . ':' . $slot . '_';
676 * @param int $qubaid the question usage id.
698 $qubaid = $qa->get_usage_id();
709 * @param int $qubaid the question usage id.
[all …]
H A Ddatalib.php431 * @param int $qubaid the id of the usage to load.
434 public function load_questions_usage_by_activity($qubaid) { argument
475 ", array('qubaid' => $qubaid));
478 throw new coding_exception('Failed to load questions_usage_by_activity ' . $qubaid);
481 $quba = question_usage_by_activity::load_from_records($records, $qubaid);
543 …$qubas[$record->qubaid] = question_usage_by_activity::load_from_records($records, $record->qubaid);
1095 * @param int $qubaid the question usage id.
1103 'questionusageid' => $qubaid, 'questionid' => $questionid, 'slot' => $slot))) {
1184 * @param string $qubaid SQL fragment that controls which usage is summed.
1189 public function sum_usage_marks_subquery($qubaid) { argument
[all …]
H A Dquestionusage.php928 * @param int $qubaid The id of the question usage we are loading.
931 public static function load_from_records($records, $qubaid) { argument
933 while ($record->qubaid != $qubaid) {
936 throw new coding_exception("Question usage {$qubaid} not found in the database.");
943 $quba->set_id_from_database($record->qubaid);
956 while ($record && $record->qubaid == $qubaid && !is_null($record->slot)) {
/dports/www/moodle310/moodle/mod/quiz/classes/privacy/
H A Dprovider.php168 …$qubaid = \core_question\privacy\provider::get_related_question_usages_for_user('rel', 'mod_quiz',…
177 " . $qubaid->from . "
178 WHERE " . $qubaid->where() . " AND qa.preview = 0";
179 … $params = ['contextlevel' => CONTEXT_MODULE, 'modname' => 'quiz'] + $qubaid->from_where_params();
481 …$qubaid = \core_question\privacy\provider::get_related_question_usages_for_user('rel', 'mod_quiz',…
492 " . $qubaid->from. "
495 " . $qubaid->where() . "
504 $qubaid->from_where_params()
/dports/www/moodle311/moodle/mod/quiz/classes/privacy/
H A Dprovider.php168 …$qubaid = \core_question\privacy\provider::get_related_question_usages_for_user('rel', 'mod_quiz',…
177 " . $qubaid->from . "
178 WHERE " . $qubaid->where() . " AND qa.preview = 0";
179 … $params = ['contextlevel' => CONTEXT_MODULE, 'modname' => 'quiz'] + $qubaid->from_where_params();
481 …$qubaid = \core_question\privacy\provider::get_related_question_usages_for_user('rel', 'mod_quiz',…
492 " . $qubaid->from. "
495 " . $qubaid->where() . "
504 $qubaid->from_where_params()
/dports/www/moodle39/moodle/mod/quiz/classes/privacy/
H A Dprovider.php168 …$qubaid = \core_question\privacy\provider::get_related_question_usages_for_user('rel', 'mod_quiz',…
177 " . $qubaid->from . "
178 WHERE " . $qubaid->where() . " AND qa.preview = 0";
179 … $params = ['contextlevel' => CONTEXT_MODULE, 'modname' => 'quiz'] + $qubaid->from_where_params();
481 …$qubaid = \core_question\privacy\provider::get_related_question_usages_for_user('rel', 'mod_quiz',…
492 " . $qubaid->from. "
495 " . $qubaid->where() . "
504 $qubaid->from_where_params()
/dports/www/moodle310/moodle/question/
H A Dpreviewlib.php227 * @param int $qubaid the question_usage this image belongs to.
235 $filearea, $qubaid, $slot, $args, $forcedownload, $fileoptions) { argument
241 $quba = question_engine::load_questions_usage_by_activity($qubaid);
272 * @param int $qubaid the id of the question usage for this preview.
275 function question_preview_action_url($questionid, $qubaid, argument
279 'previewid' => $qubaid,
H A Dtoggleflag.php34 $qubaid = required_param('qubaid', PARAM_INT); variable
45 question_flags::update_flag($qubaid, $questionid, $qaid, $slot, $checksum, $newstate);
/dports/www/moodle311/moodle/question/
H A Dpreviewlib.php227 * @param int $qubaid the question_usage this image belongs to.
235 $filearea, $qubaid, $slot, $args, $forcedownload, $fileoptions) { argument
241 $quba = question_engine::load_questions_usage_by_activity($qubaid);
272 * @param int $qubaid the id of the question usage for this preview.
275 function question_preview_action_url($questionid, $qubaid, argument
279 'previewid' => $qubaid,
H A Dtoggleflag.php34 $qubaid = required_param('qubaid', PARAM_INT); variable
45 question_flags::update_flag($qubaid, $questionid, $qaid, $slot, $checksum, $newstate);
/dports/www/moodle39/moodle/question/
H A Dpreviewlib.php227 * @param int $qubaid the question_usage this image belongs to.
235 $filearea, $qubaid, $slot, $args, $forcedownload, $fileoptions) { argument
241 $quba = question_engine::load_questions_usage_by_activity($qubaid);
272 * @param int $qubaid the id of the question usage for this preview.
275 function question_preview_action_url($questionid, $qubaid, argument
279 'previewid' => $qubaid,
H A Dtoggleflag.php34 $qubaid = required_param('qubaid', PARAM_INT); variable
45 question_flags::update_flag($qubaid, $questionid, $qaid, $slot, $checksum, $newstate);
/dports/www/moodle310/moodle/question/engine/upgrade/
H A Dupgradelib.php107 protected function set_quba_preferred_behaviour($qubaid, $preferredbehaviour) { argument
110 array('id' => $qubaid));
113 protected function set_quiz_attempt_layout($qubaid, $layout) { argument
115 $DB->set_field('quiz_attempts', 'layout', $layout, array('uniqueid' => $qubaid));
118 protected function delete_quiz_attempt($qubaid) { argument
120 $DB->delete_records('quiz_attempts', array('uniqueid' => $qubaid));
121 $DB->delete_records('question_attempts', array('id' => $qubaid));
/dports/www/moodle311/moodle/question/engine/upgrade/
H A Dupgradelib.php107 protected function set_quba_preferred_behaviour($qubaid, $preferredbehaviour) { argument
110 array('id' => $qubaid));
113 protected function set_quiz_attempt_layout($qubaid, $layout) { argument
115 $DB->set_field('quiz_attempts', 'layout', $layout, array('uniqueid' => $qubaid));
118 protected function delete_quiz_attempt($qubaid) { argument
120 $DB->delete_records('quiz_attempts', array('uniqueid' => $qubaid));
121 $DB->delete_records('question_attempts', array('id' => $qubaid));
/dports/www/moodle39/moodle/question/engine/upgrade/
H A Dupgradelib.php107 protected function set_quba_preferred_behaviour($qubaid, $preferredbehaviour) { argument
110 array('id' => $qubaid));
113 protected function set_quiz_attempt_layout($qubaid, $layout) { argument
115 $DB->set_field('quiz_attempts', 'layout', $layout, array('uniqueid' => $qubaid));
118 protected function delete_quiz_attempt($qubaid) { argument
120 $DB->delete_records('quiz_attempts', array('uniqueid' => $qubaid));
121 $DB->delete_records('question_attempts', array('id' => $qubaid));
/dports/www/moodle310/moodle/mod/quiz/report/grading/
H A Dreport.php457 foreach ($qubaids as $qubaid) {
458 $attempt = $attempts[$qubaid];
459 $quba = question_engine::load_questions_usage_by_activity($qubaid);
521 foreach ($qubaids as $qubaid) {
523 if (!question_engine::is_manual_grade_in_range($qubaid, $slot)) {
550 foreach ($qubaids as $qubaid) {
551 $attempt = $attempts[$qubaid];
/dports/www/moodle311/moodle/mod/quiz/report/grading/
H A Dreport.php458 foreach ($qubaids as $qubaid) {
459 $attempt = $attempts[$qubaid];
460 $quba = question_engine::load_questions_usage_by_activity($qubaid);
521 foreach ($qubaids as $qubaid) {
523 if (!question_engine::is_manual_grade_in_range($qubaid, $slot)) {
550 foreach ($qubaids as $qubaid) {
551 $attempt = $attempts[$qubaid];
/dports/www/moodle39/moodle/mod/quiz/report/grading/
H A Dreport.php444 foreach ($qubaids as $qubaid) {
445 $attempt = $attempts[$qubaid];
446 $quba = question_engine::load_questions_usage_by_activity($qubaid);
508 foreach ($qubaids as $qubaid) {
510 if (!question_engine::is_manual_grade_in_range($qubaid, $slot)) {
537 foreach ($qubaids as $qubaid) {
538 $attempt = $attempts[$qubaid];
/dports/www/moodle39/moodle/question/classes/
H A Dexternal.php68 * @param int $qubaid the question usage id.
78 public static function update_flag($qubaid, $questionid, $qaid, $slot, $checksum, $newstate) { argument
83 'qubaid' => $qubaid,

12