Import UI class.
More...
|
const | PROGRESS_EXECUTED = 3 |
| The progress of this instance of the backup ui class It has been executed.
|
|
const | PROGRESS_INTIAL = 0 |
| The progress of this instance of the backup ui class It is in the initial stage.
|
|
const | PROGRESS_PROCESSED = 1 |
| The progress of this instance of the backup ui class It is processed.
|
|
const | PROGRESS_SAVED = 2 |
| The progress of this instance of the backup ui class It is saved.
|
|
const | STAGE_COMPLETE = 16 |
| The stages of the backup user interface. More...
|
|
const | STAGE_CONFIRMATION = 4 |
| The stages of the backup user interface. More...
|
|
const | STAGE_FINAL = 8 |
| The stages of the backup user interface. More...
|
|
const | STAGE_INITIAL = 1 |
| The stages of the backup user interface. More...
|
|
const | STAGE_PRECHECK = 0 |
| The stages of the backup user interface The precheck/selection stage of the backup - here you choose the initial settings.
|
|
const | STAGE_SCHEMA = 2 |
| The stages of the backup user interface. More...
|
|
|
backup_controller restore_controller | $controller |
| The controller.
|
|
int | $dependencychanges = 0 |
| The number of changes made by dependency enforcement.
|
|
int | $progress |
| The current progress of the UI One of self::PROGRESS_*.
|
|
base_ui_stage | $stage |
| The current stage.
|
|
|
static bool | $skipcurrentstage = false |
| If set to true the current stage is skipped.
|
|
Import UI class.
- Copyright
- 2010 Sam Hemelryk
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ cancel_process()
base_ui::cancel_process |
( |
| ) |
|
|
inherited |
Cancels the current backup/restore and redirects the user back to the relevant place.
Reimplemented in restore_ui.
◆ display()
Displays the UI for the backup!
- Exceptions
-
- Parameters
-
- Return values
-
Reimplemented in restore_ui.
◆ enforce_changed_dependencies()
base_ui::enforce_changed_dependencies |
( |
| ) |
|
|
inherited |
Returns true if enforce_dependencies changed any settings.
- Return values
-
Reimplemented in restore_ui.
◆ enforce_dependencies()
base_ui::enforce_dependencies |
( |
| ) |
|
|
protectedinherited |
Enforces dependencies on all settings.
Call before save
- Return values
-
bool | True if dependencies were enforced and changes were made |
◆ execute()
Executes the backup plan.
- Exceptions
-
- Return values
-
Reimplemented from base_ui.
◆ get_backupid()
backup_ui::get_backupid |
( |
| ) |
|
|
inherited |
Gets the backup id from the controller.
- Return values
-
◆ get_controller()
base_ui::get_controller |
( |
| ) |
|
|
inherited |
Returns the controller object.
- Return values
-
backup_controller|restore_controller | |
◆ get_controller_id()
base_ui::get_controller_id |
( |
| ) |
|
|
inherited |
Gets the ID used in creating the controller.
Relates to course/section/cm
- Return values
-
◆ get_first_stage_id()
backup_ui::get_first_stage_id |
( |
| ) |
|
|
inherited |
Gets the id of the first stage this UI is reponsible for.
- Return values
-
Reimplemented from base_ui.
◆ get_format()
Gets the format for the backup.
- Return values
-
◆ get_name()
Gets the name related to the operation of this UI.
- Return values
-
Reimplemented from base_ui.
◆ get_progress_bar()
Customises the backup progress bar.
$PAGE
- Return values
-
array[] | An array of arrays |
Reimplemented from backup_ui.
◆ get_setting()
base_ui::get_setting |
( |
|
$name, |
|
|
|
$default = false |
|
) |
| |
|
inherited |
Gets the requested setting.
- Parameters
-
- Return values
-
◆ get_setting_value()
base_ui::get_setting_value |
( |
|
$name, |
|
|
|
$default = false |
|
) |
| |
|
inherited |
Gets the value for the requested setting.
- Parameters
-
- Return values
-
◆ get_stage()
Gets the stage we are on.
- Return values
-
◆ get_stage_name()
base_ui::get_stage_name |
( |
| ) |
|
|
inherited |
Gets the name of the stage we are on.
- Return values
-
◆ get_tasks()
Gets all backup tasks from the controller.
- Return values
-
◆ get_type()
Gets the type of the backup.
- Return values
-
◆ get_uniqueid()
backup_ui::get_uniqueid |
( |
| ) |
|
|
inherited |
Returns the backup id.
- Return values
-
Reimplemented from base_ui.
◆ initialise_stage()
import_ui::initialise_stage |
( |
|
$stage = null , |
|
|
array |
$params = null |
|
) |
| |
|
protected |
Intialises what ever stage is requested.
If none are requested we check params for 'stage' and default to initial
- Parameters
-
int | null | $stage | The desired stage to intialise or null for the default |
array | $params | |
- Return values
-
backup_ui_stage_initial|backup_ui_stage_schema|backup_ui_stage_confirmation|backup_ui_stage_final | |
Reimplemented from backup_ui.
◆ load_controller()
static backup_ui::load_controller |
( |
|
$backupid = false | ) |
|
|
staticfinalinherited |
Loads the backup controller if we are tracking one.
- Parameters
-
- Return values
-
Reimplemented from base_ui.
◆ process()
This processes the current stage of the backup.
- Exceptions
-
- Return values
-
Reimplemented in restore_ui.
◆ save_controller()
base_ui::save_controller |
( |
| ) |
|
|
inherited |
Saves the backup controller.
Once this has been called nothing else can be changed in the controller.
- Exceptions
-
- Return values
-
◆ skip_current_stage()
static backup_ui::skip_current_stage |
( |
|
$setting = true | ) |
|
|
staticinherited |
If called with default arg the current stage gets skipped.
- Parameters
-
bool | $setting | Set to true (default) if you want to skip this stage, false otherwise. |
◆ STAGE_COMPLETE
const backup_ui::STAGE_COMPLETE = 16 |
|
inherited |
The stages of the backup user interface.
The backup is now complete.
◆ STAGE_CONFIRMATION
const backup_ui::STAGE_CONFIRMATION = 4 |
|
inherited |
The stages of the backup user interface.
The confirmation stage of the backup.
◆ STAGE_FINAL
const backup_ui::STAGE_FINAL = 8 |
|
inherited |
The stages of the backup user interface.
The final stage of the backup - where it is being processed.
◆ STAGE_INITIAL
const backup_ui::STAGE_INITIAL = 1 |
|
inherited |
The stages of the backup user interface.
The initial stage of the backup - settings are here.
◆ STAGE_SCHEMA
const backup_ui::STAGE_SCHEMA = 2 |
|
inherited |
The stages of the backup user interface.
The schema stage of the backup - here you choose the bits you include.
The documentation for this class was generated from the following file: