| Línea 74... |
Línea 74... |
| 74 |
*
|
74 |
*
|
| 75 |
* @param int $stage The desired stage to intialise or null for the default
|
75 |
* @param int $stage The desired stage to intialise or null for the default
|
| 76 |
* @param array $params
|
76 |
* @param array $params
|
| 77 |
* @return backup_ui_stage_initial|backup_ui_stage_schema|backup_ui_stage_confirmation|backup_ui_stage_final
|
77 |
* @return backup_ui_stage_initial|backup_ui_stage_schema|backup_ui_stage_confirmation|backup_ui_stage_final
|
| 78 |
*/
|
78 |
*/
|
| 79 |
protected function initialise_stage($stage = null, array $params = null) {
|
79 |
protected function initialise_stage($stage = null, ?array $params = null) {
|
| 80 |
if ($stage == null) {
|
80 |
if ($stage == null) {
|
| 81 |
$stage = optional_param('stage', self::STAGE_INITIAL, PARAM_INT);
|
81 |
$stage = optional_param('stage', self::STAGE_INITIAL, PARAM_INT);
|
| 82 |
}
|
82 |
}
|
| 83 |
if (self::$skipcurrentstage) {
|
83 |
if (self::$skipcurrentstage) {
|
| 84 |
$stage *= 2;
|
84 |
$stage *= 2;
|