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

Public Member Functions

 index_page ($detected, array $actions)
 simple_message_page ($message)
 quiz_list_page (tool_qeupgradehelper_quiz_list $quizzes, $numveryoldattemtps=null)
 convert_quiz_are_you_sure ($quizsummary)
 reset_quiz_are_you_sure ($quizsummary)
 end_of_page_link ($url, $text)
 back_to_index ()

Detailed Description

Renderer for the question engine upgrade helper plugin.

Definition at line 36 of file renderer.php.


Member Function Documentation

Output a link back to the plugin index page.

Returns:
string html to output.

Definition at line 164 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

convert_quiz_are_you_sure ( quizsummary)

Render the are-you-sure page to confirm a manual upgrade.

Parameters:
object$quizsummarydata about the quiz to upgrade.
Returns:
string html to output.

Definition at line 116 of file renderer.php.

Here is the call graph for this function:

end_of_page_link ( url,
text 
)

Render a link in a div, such as the 'Back to plugin main page' link.

Parameters:
$urlthe link URL.
$textthe link text.
Returns:
string html to output.

Definition at line 155 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

index_page ( detected,
array actions 
)

Render the index page.

Parameters:
string$detectedinformation about what sort of site was detected.
array$actionslist of actions to show on this page.
Returns:
string html to output.

Definition at line 44 of file renderer.php.

Here is the call graph for this function:

quiz_list_page ( tool_qeupgradehelper_quiz_list quizzes,
numveryoldattemtps = null 
)

Render the list of quizzes that still need to be upgraded page.

Parameters:
array$quizzesof data about quizzes.
int$numveryoldattemtpsonly relevant before upgrade.
Returns:
string html to output.

Definition at line 80 of file renderer.php.

Here is the call graph for this function:

reset_quiz_are_you_sure ( quizsummary)

Render the are-you-sure page to confirm a manual reset.

Parameters:
object$quizsummarydata about the quiz to reset.
Returns:
string html to output.

Definition at line 135 of file renderer.php.

Here is the call graph for this function:

simple_message_page ( message)

Render a page that is just a simple message.

Parameters:
string$messagethe message to display.
Returns:
string html to output.

Definition at line 65 of file renderer.php.

Here is the call graph for this function:


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