Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
FileArchive Class Reference

Public Member Functions

 create ($files, $filesDir)
 
 zipFunctional ()
 

Detailed Description

Class provides functionality for creating an archive of files.

Definition at line 20 of file FileArchive.inc.php.

Member Function Documentation

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.

Parameters
array$filesthe files to add.
string$filesDira path to the files on disk.
Returns
string the path to the archive.

Definition at line 33 of file FileArchive.inc.php.

References Config\getVar(), and zipFunctional().

FileArchive::zipFunctional ( )

Return true if PHP is new enough and has the zip extension loaded.

Returns
boolean

Definition at line 65 of file FileArchive.inc.php.

Referenced by create().


The documentation for this class was generated from the following file: