Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 258... Línea 258...
258
     * @param string $filepath absolute path to the MBZ file.
258
     * @param string $filepath absolute path to the MBZ file.
259
     * @param file_progress $progress Progress updates
259
     * @param file_progress $progress Progress updates
260
     * @return stdClass containing information.
260
     * @return stdClass containing information.
261
     * @since Moodle 2.4
261
     * @since Moodle 2.4
262
     */
262
     */
263
    public static function get_backup_information_from_mbz($filepath, file_progress $progress = null) {
263
    public static function get_backup_information_from_mbz($filepath, ?file_progress $progress = null) {
264
        global $CFG;
264
        global $CFG;
265
        if (!is_readable($filepath)) {
265
        if (!is_readable($filepath)) {
266
            throw new backup_helper_exception('missing_moodle_backup_file', $filepath);
266
            throw new backup_helper_exception('missing_moodle_backup_file', $filepath);
267
        }
267
        }