Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]
This file contains backup and restore output renderers
Copyright: | 2010 Sam Hemelryk |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 1103 lines (48 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
core_backup_renderer:: (26 methods):
progress_bar()
log_display()
set_samesite_notification()
get_samesite_notification()
dependency_notification()
backup_details()
backup_details_nonstandard()
backup_details_unknown()
course_selector()
import_course_selector()
backup_detail_pair()
make_unique_id()
backup_detail_input()
backup_detail_select()
precheck_notices()
substage_buttons()
role_mappings()
continue_button()
backup_files_viewer()
get_status_display()
render_backup_files_viewer()
render_restore_course_search()
render_import_course_search()
render_restore_category_search()
restore_progress_viewer()
copy_progress_viewer()
backup_files_viewer:: (1 method):
__construct()
Class: core_backup_renderer - X-Ref
The primary renderer for the backup.progress_bar(array $items) X-Ref |
Renderers a progress bar for the backup or restore given the items that make it up. return: string param: array $items An array of items |
log_display($loghtml) X-Ref |
The backup and restore pages may display a log (if any) in a scrolling box. return: string HTML content that shows the log param: string $loghtml Log content in HTML format |
set_samesite_notification() X-Ref |
Set the same site backup notification. |
get_samesite_notification() X-Ref |
Get the same site backup notification. |
dependency_notification($message) X-Ref |
Prints a dependency notification return: string param: string $message |
backup_details($details, $nextstageurl) X-Ref |
Displays the details of a backup file return: string param: stdClass $details param: moodle_url $nextstageurl |
backup_details_nonstandard($nextstageurl, array $details) X-Ref |
Displays the general information about a backup file with non-standard format return: string HTML code to display param: moodle_url $nextstageurl URL to send user to param: array $details basic info about the file (format, type) |
backup_details_unknown(moodle_url $nextstageurl) X-Ref |
Displays the general information about a backup file with unknown format return: string HTML code to display param: moodle_url $nextstageurl URL to send user to |
course_selector(moodle_url $nextstageurl, $wholecourse = true, restore_category_search $categories = null,restore_course_search $courses = null, $currentcourse = null) X-Ref |
Displays a course selector for restore return: string param: moodle_url $nextstageurl param: bool $wholecourse true if we are restoring whole course (as with backup::TYPE_1COURSE), false otherwise param: restore_category_search $categories param: restore_course_search $courses param: int $currentcourse |
import_course_selector(moodle_url $nextstageurl, import_course_search $courses = null) X-Ref |
Displays the import course selector return: string param: moodle_url $nextstageurl param: import_course_search $courses |
backup_detail_pair($label, $value) X-Ref |
Creates a detailed pairing (key + value) return: string param: string $label param: string $value |
make_unique_id(string $prefix) X-Ref |
Creates a unique id string by appending an incremental number to the prefix. return: string param: string $prefix To be used as the left part of the id string. |
backup_detail_input($label, $type, $name, $value, array $attributes = array() X-Ref |
Created a detailed pairing with an input return: string param: string $label param: string $type param: string $name param: string $value param: array $attributes param: string|null $description |
backup_detail_select($label, $name, $options, $selected = '', $nothing = false, array $attributes = array() X-Ref |
Creates a detailed pairing with a select return: string param: string $label param: string $name param: array $options param: string $selected param: bool $nothing param: array $attributes param: string|null $description |
precheck_notices($results) X-Ref |
Displays precheck notices return: string param: array $results |
substage_buttons($haserrors) X-Ref |
Displays substage buttons return: string param: bool $haserrors |
role_mappings($rolemappings, $roles) X-Ref |
Displays a role mapping interface return: string param: array $rolemappings param: array $roles |
continue_button($url, $method = 'post') X-Ref |
Displays a continue button, overriding core renderer method of the same in order to override submission method of the button form return: string param: string|moodle_url $url param: string $method |
backup_files_viewer(array $options = null) X-Ref |
Print a backup files tree return: string param: array $options |
get_status_display($statuscode, $backupid, $restoreid=null, $operation='backup') X-Ref |
Generate the status indicator markup for display in the backup restore file area UI. return: string|boolean $status The status indicator for the operation. param: int $statuscode The status code of the backup. param: string $backupid The backup record id. |
render_backup_files_viewer(backup_files_viewer $viewer) X-Ref |
Displays a backup files viewer return: string param: backup_files_viewer $viewer |
render_restore_course_search(restore_course_search $component) X-Ref |
Renders a restore course search object return: string param: restore_course_search $component |
render_import_course_search(import_course_search $component) X-Ref |
Renders an import course search object return: string param: import_course_search $component |
render_restore_category_search(restore_category_search $component) X-Ref |
Renders a restore category search object return: string param: restore_category_search $component |
restore_progress_viewer($userid, $context) X-Ref |
Get markup to render table for all of a users async in progress restores. return: string $html The table HTML. param: int $userid The Moodle user id. param: \context $context The Moodle context for these restores. |
copy_progress_viewer(int $userid, int $courseid) X-Ref |
Get markup to render table for all of a users course copies. return: string $html The table HTML. param: int $userid The Moodle user id. param: int $courseid The id of the course to get the backups for. |
Class: backup_files_viewer - X-Ref
Data structure representing backup files viewer__construct(array $options = null) X-Ref |
Constructor of backup_files_viewer class param: array $options |