Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Class representing the precheck/selection stage of a import. More...
Public Member Functions | |
__construct (backup_ui $ui, array $params=null) | |
Precheck/selection import stage constructor. More... | |
display (core_backup_renderer $renderer) | |
Displays the stage. More... | |
get_backupid () | |
The backup id from the backup controller. More... | |
get_name () | |
The name of this stage. More... | |
get_next_stage () | |
Gets the next stage for the import. More... | |
get_params () | |
Returns the custom params for this stage. More... | |
get_prev_stage () | |
The previous stage. More... | |
get_stage () | |
The current stage. More... | |
get_ui () | |
Returns the base UI class. More... | |
get_uniqueid () | |
The backup id from the backup controller. More... | |
initialise_stage_form () | |
Initialises the backup_moodleform instance for this stage. More... | |
is_first_stage () | |
Returns true if this stage is the first stage. More... | |
process (base_moodleform $form=null) | |
Processes the precheck/selection import stage. More... | |
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. | |
Class representing the precheck/selection stage of a import.
In this stage the user is required to perform initial selections. That is a choice of which course to import from.
import_ui_stage_precheck::__construct | ( | backup_ui | $ui, |
array | $params = null |
||
) |
Precheck/selection import stage constructor.
backup_ui | $ui | |
array | $params |
Reimplemented from backup_ui_stage.
|
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_final, backup_ui_stage_complete, import_ui_stage_confirmation, restore_ui_stage_process, and restore_ui_stage_complete.
|
finalinherited |
The backup id from the backup controller.
string |
|
inherited |
import_ui_stage_precheck::get_next_stage | ( | ) |
|
finalinherited |
Returns the custom params for this stage.
array|null |
|
finalinherited |
The previous stage.
int |
|
finalinherited |
The current stage.
int |
|
finalinherited |
Returns the base UI class.
base_ui |
|
finalinherited |
The backup id from the backup controller.
string |
import_ui_stage_precheck::initialise_stage_form | ( | ) |
Initialises the backup_moodleform instance for this stage.
backup_moodleform|void |
Reimplemented from base_ui_stage.
|
inherited |
Returns true if this stage is the first stage.
bool |
Reimplemented in restore_ui_stage.
import_ui_stage_precheck::process | ( | base_moodleform | $form = null | ) |
Processes the precheck/selection import stage.
base_moodleform | null | $form |
Reimplemented from base_ui_stage.