Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 92... Línea 92...
92
     *
92
     *
93
     * @param int|null $stage The desired stage to intialise or null for the default
93
     * @param int|null $stage The desired stage to intialise or null for the default
94
     * @param array $params
94
     * @param array $params
95
     * @return backup_ui_stage_initial|backup_ui_stage_schema|backup_ui_stage_confirmation|backup_ui_stage_final
95
     * @return backup_ui_stage_initial|backup_ui_stage_schema|backup_ui_stage_confirmation|backup_ui_stage_final
96
     */
96
     */
97
    protected function initialise_stage($stage = null, array $params = null) {
97
    protected function initialise_stage($stage = null, ?array $params = null) {
98
        if ($stage == null) {
98
        if ($stage == null) {
99
            $stage = optional_param('stage', self::STAGE_PRECHECK, PARAM_INT);
99
            $stage = optional_param('stage', self::STAGE_PRECHECK, PARAM_INT);
100
        }
100
        }
101
        if (self::$skipcurrentstage) {
101
        if (self::$skipcurrentstage) {
102
            $stage *= 2;
102
            $stage *= 2;
Línea 148... Línea 148...
148
    /**
148
    /**
149
     * Precheck/selection import stage constructor
149
     * Precheck/selection import stage constructor
150
     * @param backup_ui $ui
150
     * @param backup_ui $ui
151
     * @param array $params
151
     * @param array $params
152
     */
152
     */
153
    public function __construct(backup_ui $ui, array $params = null) {
153
    public function __construct(backup_ui $ui, ?array $params = null) {
154
        $this->stage = import_ui::STAGE_PRECHECK;
154
        $this->stage = import_ui::STAGE_PRECHECK;
155
        parent::__construct($ui, $params);
155
        parent::__construct($ui, $params);
156
    }
156
    }
Línea 157... Línea 157...
157
 
157
 
158
    /**
158
    /**
159
     * Processes the precheck/selection import stage
159
     * Processes the precheck/selection import stage
160
     *
160
     *
161
     * @param base_moodleform|null $form
161
     * @param base_moodleform|null $form
162
     */
162
     */
163
    public function process(base_moodleform $form = null) {
163
    public function process(?base_moodleform $form = null) {
164
        // Dummy functions. We don't have to do anything here.
164
        // Dummy functions. We don't have to do anything here.
165
        return;
165
        return;
Línea 166... Línea 166...
166
    }
166
    }