Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 84... Línea 84...
84
    /**
84
    /**
85
     * Yay for constructors
85
     * Yay for constructors
86
     * @param backup_controller $controller
86
     * @param backup_controller $controller
87
     * @param array $params
87
     * @param array $params
88
     */
88
     */
89
    public function __construct($controller, array $params = null) {
89
    public function __construct($controller, ?array $params = null) {
90
        $this->controller = $controller;
90
        $this->controller = $controller;
91
        $this->progress = self::PROGRESS_INTIAL;
91
        $this->progress = self::PROGRESS_INTIAL;
92
        $this->stage = $this->initialise_stage(null, $params);
92
        $this->stage = $this->initialise_stage(null, $params);
93
        if ($this->controller) {
93
        if ($this->controller) {
94
            // Process UI event before to be safe.
94
            // Process UI event before to be safe.
Línea 114... Línea 114...
114
     *
114
     *
115
     * @param int|null $stage The desired stage to intialise or null for the default
115
     * @param int|null $stage The desired stage to intialise or null for the default
116
     * @param array $params
116
     * @param array $params
117
     * @return base_ui_stage
117
     * @return base_ui_stage
118
     */
118
     */
119
    abstract protected function initialise_stage($stage = null, array $params = null);
119
    abstract protected function initialise_stage($stage = null, ?array $params = null);
Línea 120... Línea 120...
120
 
120
 
121
    /**
121
    /**
122
     * This processes the current stage of the backup
122
     * This processes the current stage of the backup
123
     * @throws backup_ui_exception
123
     * @throws backup_ui_exception