[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/backup/util/ui/ -> import_extensions.php (summary)

This file contains extension of the backup classes that override some methods and functionality in order to customise the backup UI for the purposes of import.

Copyright: 2010 Sam Hemelryk
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 215 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 classes

import_ui:: (2 methods):
  get_progress_bar()
  initialise_stage()

import_ui_stage_inital:: (0 methods):

import_ui_stage_schema:: (0 methods):

import_ui_stage_confirmation:: (2 methods):
  initialise_stage_form()
  display()

import_ui_stage_final:: (0 methods):

import_course_search:: (1 method):
  setup_restrictions()


Class: import_ui  - X-Ref

Import UI class

get_progress_bar()   X-Ref
Customises the backup progress bar

return: array[] An array of arrays

initialise_stage($stage = null, array $params = null)   X-Ref
Intialises what ever stage is requested. If none are requested we check
params for 'stage' and default to initial

param: int|null $stage The desired stage to intialise or null for the default
param: array $params
return: backup_ui_stage_initial|backup_ui_stage_schema|backup_ui_stage_confirmation|backup_ui_stage_final

Class: import_ui_stage_inital  - X-Ref

Extends the initial stage

Class: import_ui_stage_schema  - X-Ref

Extends the schema stage

Class: import_ui_stage_confirmation  - X-Ref

Extends the confirmation stage.

This overides the initialise stage form to remove the filenamesetting heading
as it is always hidden.

initialise_stage_form()   X-Ref
Initialises the stages moodleform

return: moodleform

display(core_backup_renderer $renderer)   X-Ref
Displays the stage

This function is overriden so that we can manipulate the strings on the
buttons.

param: core_backup_renderer $renderer
return: string HTML code to echo

Class: import_ui_stage_final  - X-Ref

Overrides the final stage.

Class: import_course_search  - X-Ref

Extends the restore course search to search for import courses.

setup_restrictions()   X-Ref
Sets up any access restrictions for the courses to be displayed in the search.

This will typically call $this->require_capability().



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