|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
| tool_qeupgradehelper_display_convert_attempt_input | ( | $ | quiz, |
| $ | attempt, | ||
| $ | question, | ||
| $ | qsession, | ||
| $ | qstates | ||
| ) |
Definition at line 627 of file locallib.php.


| tool_qeupgradehelper_find_test_case | ( | $ | behaviour, |
| $ | statehistory, | ||
| $ | qtype, | ||
| $ | extratests | ||
| ) |
Identify the question session id of a question attempt matching certain requirements.
| integer | $behaviour | 0 = deferred feedback, 1 = interactive. |
| string | $statehistory | of states, last first. E.g. 620. |
| string | $qtype | question type. |
Definition at line 461 of file locallib.php.
| tool_qeupgradehelper_format_var | ( | $ | name, |
| $ | var | ||
| ) |
| tool_qeupgradehelper_generate_unit_test | ( | $ | questionsessionid, |
| $ | namesuffix | ||
| ) |
Grab all the data that upgrade will need for upgrading one attempt at one question from the old DB.
Definition at line 519 of file locallib.php.

List the number of quiz attempts that were never upgraded from 1.4 -> 1.5.
Definition at line 352 of file locallib.php.
| tool_qeupgradehelper_get_quiz | ( | $ | quizid | ) |
Get the information about a quiz to be upgraded.
| integer | $quizid | the quiz id. |
Definition at line 371 of file locallib.php.

| tool_qeupgradehelper_get_resettable_quiz | ( | $ | quizid | ) |
Get the information about a quiz to be upgraded.
| integer | $quizid | the quiz id. |
Definition at line 401 of file locallib.php.
| tool_qeupgradehelper_get_session_id | ( | $ | attemptid, |
| $ | questionid | ||
| ) |
Get a question session id form a quiz attempt id and a question id.
| int | $attemptid | a quiz attempt id. |
| int | $questionid | a question id. |
Definition at line 443 of file locallib.php.
Detect whether this site has been upgraded to the new question engine yet.
Definition at line 34 of file locallib.php.

| tool_qeupgradehelper_load_question | ( | $ | questionid, |
| $ | quizid | ||
| ) |
Definition at line 636 of file locallib.php.


If the site has been upgraded, display an error.
Definition at line 54 of file locallib.php.

If the site has not yet been upgraded, display an error.
Definition at line 44 of file locallib.php.

| tool_qeupgradehelper_url | ( | $ | script, |
| $ | params = array() |
||
| ) |
Get the URL of a script within this plugin.
| string | $script | the script name, without .php. E.g. 'index'. |
| array | $params | URL parameters (optional). |
Definition at line 66 of file locallib.php.
