Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: