Open Monograph Press  1.1
 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 16 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, in an associative array of the format ('serverPath' => 'clientFilename')
string$filesDira path to the files on disk.
string the path to the archive.

Definition at line 30 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 62 of file

Referenced by create().

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