|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| archive_to_storage ($files, $contextid, $component, $filearea, $itemid, $filepath, $filename, $userid=NULL) | |
| archive_to_pathname ($files, $archivefile) | |
| extract_to_pathname ($archivefile, $pathname) | |
| extract_to_storage ($archivefile, $contextid, $component, $filearea, $itemid, $pathbase, $userid=NULL) | |
| list_files ($archivefile) | |
Definition at line 38 of file file_packer.php.
| archive_to_pathname | ( | $ | files, |
| $ | archivefile | ||
| ) | [abstract] |
Archive files and store the result in os file
| array | $files | array with zip paths as keys (archivepath=>ospathname or archivepath=>stored_file) |
| string | $archivefile | path to target zip file |
Reimplemented in zip_packer.
| archive_to_storage | ( | $ | files, |
| $ | contextid, | ||
| $ | component, | ||
| $ | filearea, | ||
| $ | itemid, | ||
| $ | filepath, | ||
| $ | filename, | ||
| $ | userid = NULL |
||
| ) | [abstract] |
Archive files and store the result in file storage
| array | $files | array with zip paths as keys (archivepath=>ospathname or archivepath=>stored_file) |
| int | $contextid | |
| string | $component | |
| string | $filearea | |
| int | $itemid | |
| string | $filepath | |
| string | $filename |
Reimplemented in zip_packer.
| extract_to_pathname | ( | $ | archivefile, |
| $ | pathname | ||
| ) | [abstract] |
Extract file to given file path (real OS filesystem), existing files are overwrited
| mixed | $archivefile | full pathname of zip file or stored_file instance |
| string | $pathname | target directory |
Reimplemented in zip_packer.

| extract_to_storage | ( | $ | archivefile, |
| $ | contextid, | ||
| $ | component, | ||
| $ | filearea, | ||
| $ | itemid, | ||
| $ | pathbase, | ||
| $ | userid = NULL |
||
| ) | [abstract] |
Extract file to given file path (real OS filesystem), existing files are overwrited
| mixed | $archivefile | full pathname of zip file or stored_file instance |
| int | $contextid | |
| string | $component | |
| string | $filearea | |
| int | $itemid | |
| string | $filepath |
Reimplemented in zip_packer.

| list_files | ( | $ | archivefile | ) | [abstract] |
Returns array of info about all files in archive
Reimplemented in zip_packer.
