Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | List of all members
backup_file_manager Class Reference

Collection of helper functions to handle files. More...

Static Public Member Functions

static copy_file_moodle2backup ($backupid, $filerecorid)
 Copy one file from moodle storage to backup storage.
 
static get_backup_content_file_location ($contenthash)
 Given one file content hash, returns the path (relative to filedir) to the file.
 
static get_backup_storage_base_dir ($backupid)
 Returns the full path to backup storage base dir.
 

Detailed Description

Collection of helper functions to handle files.

This class implements various functions related with moodle storage handling (get file from storage, put it there...) and some others to use the zip/unzip facilities.

Note: It's supposed that, some day, files implementation will offer those functions without needeing to know storage internals at all. That day, we'll move related functions here to proper file api ones.

TODO: Finish phpdocs


The documentation for this class was generated from the following file: