Moodle  2.2.1
http://www.collinsharper.com
backup_file_manager Class Reference

Static Public Member Functions

static get_backup_storage_base_dir ($backupid)
static get_backup_content_file_location ($contenthash)
static copy_file_moodle2backup ($backupid, $filerecorid)

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

Definition at line 38 of file backup_file_manager.class.php.


Member Function Documentation

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations