[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/admin/tool/assignmentupgrade/ -> renderer.php (summary)

Defines the renderer for the assignment upgrade helper plugin.

Copyright: 2012 NetSpot
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 249 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

tool_assignmentupgrade_renderer:: (11 methods):
  index_page()
  simple_message_page()
  confirm_batch_operation_page()
  render_tool_assignmentupgrade_batchoperationconfirm()
  assignment_list_page()
  convert_assignment_result()
  convert_assignment_are_you_sure()
  flexible_table()
  moodleform()
  end_of_page_link()
  back_to_index()


Class: tool_assignmentupgrade_renderer  - X-Ref

Renderer for the assignment upgrade helper plugin.

index_page($detected, array $actions)   X-Ref
Render the index page.

param: string $detected information about what sort of site was detected.
param: array $actions list of actions to show on this page.
return: string html to output.

simple_message_page($message)   X-Ref
Render a page that is just a simple message.

param: string $message the message to display.
return: string html to output.

confirm_batch_operation_page(stdClass $data)   X-Ref
Render the confirm batch operation page

param: stdClass $data Submitted form data with list of assignments to upgrade
return: string html to output.

render_tool_assignmentupgrade_batchoperationconfirm(tool_assignmentupgrade_batchoperationconfirm $confirm)   X-Ref
Render the confirm batch continue / cancel links

param: tool_assignmentupgrade_batchoperationconfirm $confirm Wrapper class to determine the continue message and url
return: string html to output.

assignment_list_page(tool_assignmentupgrade_assignments_table $assignments,tool_assignmentupgrade_batchoperations_form $batchform,tool_assignmentupgrade_pagination_form $paginationform)   X-Ref
Render the list of assignments that still need to be upgraded page.

param: tool_assignmentupgrade_assignments_table $assignments of data about assignments.
param: tool_assignmentupgrade_batchoperations_form $batchform Submitted form with list of assignments to upgrade
param: tool_assignmentupgrade_pagination_form $paginationform Form which contains the preferences for paginating the table
return: string html to output.

convert_assignment_result($assignmentsummary, $success, $log)   X-Ref
Render the result of an assignment conversion

param: stdClass $assignmentsummary data about the assignment to upgrade.
param: bool $success Set to true if the outcome of the conversion was a success
param: string $log The log from the conversion
return: string html to output.

convert_assignment_are_you_sure($assignmentsummary)   X-Ref
Render the are-you-sure page to confirm a manual upgrade.

param: stdClass $assignmentsummary data about the assignment to upgrade.
return: string html to output.

flexible_table(flexible_table $table, $rowsperpage, $displaylinks)   X-Ref
Helper method dealing with the fact we can not just fetch the output of flexible_table

param: flexible_table $table
param: int $rowsperpage
param: bool $displaylinks Show links in the table
return: string HTML

moodleform(moodleform $mform)   X-Ref
Helper method dealing with the fact we can not just fetch the output of moodleforms

param: moodleform $mform
return: string HTML

end_of_page_link($url, $text)   X-Ref
Render a link in a div, such as the 'Back to plugin main page' link.

param: string|moodle_url $url the link URL.
param: string $text the link text.
return: string html to output.

back_to_index()   X-Ref
Output a link back to the plugin index page.

return: string html to output.



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1