| Moodle APIs 4.3
    Moodle 4.3.6 (Build: 20240812) | 
restore user interface stages More...
| Public Member Functions | |
| __construct (restore_ui $ui, array $params=null) | |
| Constructor. | |
| display (core_backup_renderer $renderer) | |
| Displays the stage. | |
| get_name () | |
| The name of this stage. | |
| get_next_stage () | |
| The next stage. | |
| get_params () | |
| Returns the custom params for this stage. | |
| get_prev_stage () | |
| The previous stage. | |
| get_restoreid () | |
| The restore id from the restore controller. | |
| get_stage () | |
| The current stage. | |
| get_ui () | |
| Returns the base UI class. | |
| get_uniqueid () | |
| The backup id from the backup controller. | |
| has_sub_stages () | |
| No sub stages for this stage. | |
| is_first_stage () | |
| Returns true if this is the settings stage. | |
| is_independent () | |
| This is an independent stage. | |
| process (base_moodleform $form=null) | |
| Processes the stage. | |
| Protected Member Functions | |
| initialise_stage_form () | |
| Creates an instance of the correct moodleform properly populated and all dependencies instantiated. | |
| Protected Attributes | |
| array | $params = null | 
| Custom form params that will be added as hidden inputs. | |
| int | $stage = 1 | 
| The current stage. | |
| base_moodleform | $stageform = null | 
| The moodleform for this stage. | |
| base_ui | $ui | 
| The backuck UI object. | |
restore user interface stages
This file contains the classes required to manage the stages that make up the restore user interface. These will be primarily operated a restore_ui instance.
This class should be extended by all restore stages (a requirement of many restore ui functions). Each stage must then define two abstract methods
| restore_ui_stage::__construct | ( | restore_ui | $ui, | 
| array | $params = null ) | 
Constructor.
| restore_ui | $ui | |
| array | $params | 
Reimplemented in restore_ui_stage_schema, and restore_ui_stage_settings.
| 
 | inherited | 
Displays the stage.
By default this involves instantiating the form for the stage and the calling it to display.
| core_backup_renderer | $renderer | 
| string | HTML code to echo | 
Reimplemented in backup_ui_stage_complete, backup_ui_stage_final, import_ui_stage_confirmation, restore_ui_stage_complete, and restore_ui_stage_process.
| 
 | final | 
| 
 | inherited | 
The next stage.
| int | 
Reimplemented in backup_ui_stage_initial, and import_ui_stage_precheck.
| 
 | finalinherited | 
Returns the custom params for this stage.
| array|null | 
| 
 | finalinherited | 
The previous stage.
| int | 
| 
 | final | 
The restore id from the restore controller.
| string | 
| 
 | finalinherited | 
The current stage.
| int | 
| 
 | finalinherited | 
Returns the base UI class.
| base_ui | 
| 
 | finalinherited | 
The backup id from the backup controller.
| string | 
| restore_ui_stage::has_sub_stages | ( | ) | 
| 
 | abstractprotectedinherited | 
Creates an instance of the correct moodleform properly populated and all dependencies instantiated.
@abstract
| backup_moodleform | 
Reimplemented in backup_ui_stage_confirmation, backup_ui_stage_final, backup_ui_stage_initial, backup_ui_stage_schema, import_ui_stage_confirmation, import_ui_stage_precheck, restore_ui_stage_process, restore_ui_stage_review, restore_ui_stage_schema, and restore_ui_stage_settings.
| 
 | final | 
| 
 | final | 
This is an independent stage.
| int | 
| 
 | abstractinherited | 
Processes the stage.
This must be overridden by every stage as it will be different for every stage
@abstract
| base_moodleform | $form | 
Reimplemented in backup_ui_stage_confirmation, backup_ui_stage_final, backup_ui_stage_initial, backup_ui_stage_schema, import_ui_stage_precheck, restore_ui_stage_process, restore_ui_stage_review, restore_ui_stage_schema, and restore_ui_stage_settings.