Open Journal Systems  2.4.8
 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

Member Function Documentation

FileArchive::create (   $files,

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$filesthe files to add.
string$filesDira path to the files on disk.
string the path to the archive.

Definition at line 33 of file

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

FileArchive::zipFunctional ( )

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


Definition at line 65 of file

Referenced by create().

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