Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
import_ui_stage_inital Class Reference

Extends the initial stage. More...

Inheritance diagram for import_ui_stage_inital:
backup_ui_stage_initial backup_ui_stage base_ui_stage

Public Member Functions

 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 backup. 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...
 
 is_first_stage ()
 Returns true if this stage is the first stage. More...
 
 process (base_moodleform $m=null)
 Processes the initial backup stage. More...
 

Protected Member Functions

 initialise_stage_form ()
 Initialises the backup_moodleform instance for this stage. More...
 

Protected Attributes

bool $oneclickbackup = false
 When set to true we skip all stages and jump to immediately processing the backup.
 
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.
 

Detailed Description

Extends the initial stage.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ display()

base_ui_stage::display ( core_backup_renderer  $renderer)
inherited

Displays the stage.

By default this involves instantiating the form for the stage and the calling it to display.

Parameters
core_backup_renderer$renderer
Return values
stringHTML code to echo

Reimplemented in restore_ui_stage_complete, restore_ui_stage_process, import_ui_stage_confirmation, backup_ui_stage_complete, and backup_ui_stage_final.

◆ get_backupid()

backup_ui_stage::get_backupid ( )
finalinherited

The backup id from the backup controller.

Return values
string

◆ get_name()

base_ui_stage::get_name ( )
inherited

The name of this stage.

Return values
string

Reimplemented in restore_ui_stage.

◆ get_next_stage()

backup_ui_stage_initial::get_next_stage ( )
inherited

Gets the next stage for the backup.

We override this function to implement the one click backup. When the user performs a one click backup we jump straight to the final stage.

Return values
int

Reimplemented from base_ui_stage.

◆ get_params()

base_ui_stage::get_params ( )
finalinherited

Returns the custom params for this stage.

Return values
array|null

◆ get_prev_stage()

base_ui_stage::get_prev_stage ( )
finalinherited

The previous stage.

Return values
int

◆ get_stage()

base_ui_stage::get_stage ( )
finalinherited

The current stage.

Return values
int

◆ get_ui()

base_ui_stage::get_ui ( )
finalinherited

Returns the base UI class.

Return values
base_ui

◆ get_uniqueid()

base_ui_stage::get_uniqueid ( )
finalinherited

The backup id from the backup controller.

Return values
string

◆ initialise_stage_form()

backup_ui_stage_initial::initialise_stage_form ( )
protectedinherited

Initialises the backup_moodleform instance for this stage.

Return values
backup_initial_form

Reimplemented from base_ui_stage.

◆ is_first_stage()

base_ui_stage::is_first_stage ( )
inherited

Returns true if this stage is the first stage.

Return values
bool

Reimplemented in restore_ui_stage.

◆ process()

backup_ui_stage_initial::process ( base_moodleform  $m = null)
inherited

Processes the initial backup stage.

Parameters
base_moodleform$m
Return values
intThe number of changes

Reimplemented from base_ui_stage.


The documentation for this class was generated from the following file: