|
Moodle
2.2.1
http://www.collinsharper.com
|

This class manages upgrading all the question attempts from the old database structure to the new question engine.
Definition at line 43 of file upgradelib.php.
| convert_question_attempt | ( | $ | quiz, |
| $ | attempt, | ||
| $ | question, | ||
| $ | qsession, | ||
| $ | qstates | ||
| ) |
Definition at line 391 of file upgradelib.php.


| convert_quiz_attempt | ( | $ | quiz, |
| $ | attempt, | ||
| moodle_recordset $ | questionsessionsrs, | ||
| moodle_recordset $ | questionsstatesrs | ||
| ) | [protected] |
Definition at line 187 of file upgradelib.php.


| decode_random_attempt | ( | $ | qstates, |
| $ | maxmark | ||
| ) | [protected] |
Definition at line 408 of file upgradelib.php.


| delete_quiz_attempt | ( | $ | qubaid | ) | [protected] |
Definition at line 292 of file upgradelib.php.
| get_converter_class_name | ( | $ | question, |
| $ | quiz, | ||
| $ | qsessionid | ||
| ) | [protected] |
| get_next_question_session | ( | $ | attempt, |
| moodle_recordset $ | questionsessionsrs | ||
| ) |
| get_question_states | ( | $ | attempt, |
| $ | question, | ||
| moodle_recordset $ | questionsstatesrs | ||
| ) |
| get_quiz_ids | ( | ) | [protected] |
Reimplemented in tool_qeupgradehelper_attempt_upgrader.
Definition at line 87 of file upgradelib.php.

| insert_record | ( | $ | table, |
| $ | record, | ||
| $ | saveid = true |
||
| ) | [protected] |
| load_dataset | ( | $ | questionid, |
| $ | selecteditem | ||
| ) |
Definition at line 311 of file upgradelib.php.
| load_question | ( | $ | questionid, |
| $ | quizid = null |
||
| ) |
Definition at line 439 of file upgradelib.php.
| prevent_timeout | ( | ) | [protected] |
Reimplemented in test_question_engine_attempt_upgrader.
Definition at line 75 of file upgradelib.php.

| print_progress | ( | $ | done, |
| $ | outof, | ||
| $ | quizid | ||
| ) | [protected] |
Called before starting to upgrade all the attempts at a particular quiz.
| int | $done | the number of quizzes processed so far. |
| int | $outof | the total number of quizzes to process. |
| int | $quizid | the id of the quiz that is about to be processed. |
Reimplemented in tool_qeupgradehelper_attempt_upgrader.
Definition at line 61 of file upgradelib.php.

| save_usage | ( | $ | preferredbehaviour, |
| $ | attempt, | ||
| $ | qas, | ||
| $ | quizlayout | ||
| ) |
Definition at line 225 of file upgradelib.php.


| set_quba_preferred_behaviour | ( | $ | qubaid, |
| $ | preferredbehaviour | ||
| ) | [protected] |
| set_quiz_attempt_layout | ( | $ | qubaid, |
| $ | layout | ||
| ) | [protected] |
| supply_missing_question_attempt | ( | $ | quiz, |
| $ | attempt, | ||
| $ | question | ||
| ) |
Definition at line 376 of file upgradelib.php.


| update_all_attempts_at_quiz | ( | $ | quiz | ) |
Definition at line 145 of file upgradelib.php.


$doingbackup = false [protected] |
Definition at line 53 of file upgradelib.php.
$dotcounter = 0 [protected] |
Definition at line 49 of file upgradelib.php.
$logger [protected] |
Definition at line 47 of file upgradelib.php.
$progressbar = null [protected] |
Definition at line 51 of file upgradelib.php.
$questionloader [protected] |
Definition at line 45 of file upgradelib.php.