Moodle  2.2.1
http://www.collinsharper.com
restore_ui_stage_process Class Reference
Inheritance diagram for restore_ui_stage_process:
Collaboration diagram for restore_ui_stage_process:

Public Member Functions

 __construct (base_ui $ui, array $params=null)
 process (base_moodleform $form=null)
 display ($renderer)
 has_sub_stages ()

Data Fields

const SUBSTAGE_NONE = 0
const SUBSTAGE_PRECHECKS = 2

Protected Member Functions

 initialise_stage_form ()

Protected Attributes

 $substage = 0

Detailed Description

Final stage of backup

This stage is special in that it is does not make use of a form. The reason for this is the order of procession of backup at this stage. The processesion is: 1. The final stage will be intialise. 2. The confirmation stage will be processed. 3. The backup will be executed 4. The complete stage will be loaded by execution 5. The complete stage will be displayed

This highlights that we neither need a form nor a display method for this stage we simply need to process.

Definition at line 603 of file restore_ui_stage.class.php.


Constructor & Destructor Documentation

__construct ( base_ui ui,
array params = null 
)

Constructs the final stage

Parameters:
backup_ui$ui

Reimplemented from base_ui_stage.

Definition at line 614 of file restore_ui_stage.class.php.


Member Function Documentation

display ( renderer)

Renders the process stage screen

Parameters:
core_backup_renderer$rendererrenderer instance to use
Returns:
string HTML code

Definition at line 679 of file restore_ui_stage.class.php.

Here is the call graph for this function:

No sub stages for this stage

Returns:
false

Reimplemented from restore_ui_stage.

Definition at line 720 of file restore_ui_stage.class.php.

initialise_stage_form ( ) [protected]

should NEVER be called... throws an exception

Reimplemented from base_ui_stage.

Definition at line 669 of file restore_ui_stage.class.php.

process ( base_moodleform form = null)

Processes the final stage.

In this case it checks to see if there is a sub stage that we need to display before execution, if there is we gear up to display the subpage, otherwise we return true which will lead to execution of the restore and the loading of the completed stage.

Reimplemented from base_ui_stage.

Definition at line 626 of file restore_ui_stage.class.php.

Here is the call graph for this function:


Field Documentation

$substage = 0 [protected]

Definition at line 608 of file restore_ui_stage.class.php.

const SUBSTAGE_NONE = 0

Definition at line 605 of file restore_ui_stage.class.php.

const SUBSTAGE_PRECHECKS = 2

Definition at line 606 of file restore_ui_stage.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations