|
Moodle
2.2.1
http://www.collinsharper.com
|
Static Public Member Functions | |
| static | get_backup_storage_base_dir ($backupid) |
| static | get_backup_content_file_location ($contenthash) |
| static | copy_file_moodle2backup ($backupid, $filerecorid) |
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
Definition at line 38 of file backup_file_manager.class.php.
| static copy_file_moodle2backup | ( | $ | backupid, |
| $ | filerecorid | ||
| ) | [static] |
Copy one file from moodle storage to backup storage
Definition at line 61 of file backup_file_manager.class.php.


| static get_backup_content_file_location | ( | $ | contenthash | ) | [static] |
Given one file content hash, returns the path (relative to filedir) to the file.
Definition at line 53 of file backup_file_manager.class.php.

| static get_backup_storage_base_dir | ( | $ | backupid | ) | [static] |
Returns the full path to backup storage base dir
Definition at line 43 of file backup_file_manager.class.php.
