Moodle  2.2.1
http://www.collinsharper.com
tool_qeupgradehelper_attempt_upgrader Class Reference
Inheritance diagram for tool_qeupgradehelper_attempt_upgrader:
Collaboration diagram for tool_qeupgradehelper_attempt_upgrader:

Public Member Functions

 __construct ($quizid, $attemptstodo)
 reset_all_resettable_attempts ()

Data Fields

 $quizid
 $attemptsdone = 0
 $attemptstodo

Protected Member Functions

 get_quiz_ids ()
 print_progress ($done, $outof, $quizid)
 convert_quiz_attempt ($quiz, $attempt, $questionsessionsrs, $questionsstatesrs)
 reset_progress ($done, $outof)
 get_resettable_attempts ($quiz)
 reset_attempt ($quiz, $attempt)

Detailed Description

Definition at line 33 of file afterupgradelib.php.


Constructor & Destructor Documentation

__construct ( quizid,
attemptstodo 
)

Definition at line 38 of file afterupgradelib.php.


Member Function Documentation

convert_quiz_attempt ( quiz,
attempt,
questionsessionsrs,
questionsstatesrs 
) [protected]

Definition at line 50 of file afterupgradelib.php.

get_quiz_ids ( ) [protected]

Reimplemented from question_engine_attempt_upgrader.

Definition at line 43 of file afterupgradelib.php.

get_resettable_attempts ( quiz) [protected]

Definition at line 69 of file afterupgradelib.php.

Here is the caller graph for this function:

print_progress ( done,
outof,
quizid 
) [protected]

Called before starting to upgrade all the attempts at a particular quiz.

Parameters:
int$donethe number of quizzes processed so far.
int$outofthe total number of quizzes to process.
int$quizidthe id of the quiz that is about to be processed.

Reimplemented from question_engine_attempt_upgrader.

Definition at line 47 of file afterupgradelib.php.

Definition at line 94 of file afterupgradelib.php.

Here is the call graph for this function:

reset_attempt ( quiz,
attempt 
) [protected]

Definition at line 108 of file afterupgradelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

reset_progress ( done,
outof 
) [protected]

Definition at line 55 of file afterupgradelib.php.

Here is the caller graph for this function:


Field Documentation

$attemptsdone = 0

Definition at line 35 of file afterupgradelib.php.

$attemptstodo

Definition at line 36 of file afterupgradelib.php.

Definition at line 34 of file afterupgradelib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations