|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct () | |
| create ($files, $filesDir) | |
Static Public Member Functions | |
| static | isFunctional () |
| static | tarFunctional () |
| static | zipFunctional () |
Class provides functionality for creating an archive of files.
Definition at line 16 of file FileArchive.inc.php.
| FileArchive::__construct | ( | ) |
Definition at line 18 of file FileArchive.inc.php.
| FileArchive::create | ( | $files, | |
| $filesDir | |||
| ) |
Assembles an array of filenames into either a tar.gz or a .zip file, based on what is available. Returns a string representing the path to the archive on disk.
| array | $files | the files to add, in an associative array of the format ('serverPath' => 'clientFilename') |
| string | $filesDir | a path to the files on disk. |
Definition at line 30 of file FileArchive.inc.php.
References Config\getVar().
|
static |
Definition at line 76 of file FileArchive.inc.php.
References tarFunctional(), and zipFunctional().
Referenced by FilesGridCapabilities\canDownloadAll().
|
static |
Return true if the tar tools are configured.
Definition at line 71 of file FileArchive.inc.php.
References Config\getVar().
Referenced by isFunctional().
|
static |
Return true if the zip extension is loaded.
Definition at line 64 of file FileArchive.inc.php.
Referenced by isFunctional().