SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class Archive

Class for creating archives in various formats - zip, tar.bz2, etc

Variables

NameVisibilityDescription
$driver 
$paths 

Functions

NameVisibilityDescription
__constructpublicLoads the archive driver.
addpublicAdds files or directories, recursively, to an archive.
createpublicCreates a raw archive file and returns it.
savepublicCreates an archive and saves it into a file.

public __construct

void $Archive->__construct ( [ string $type ] );

Loads the archive driver.

public add

object $Archive->add ( string $path [, string $name [, bool $recursive ]] );

Adds files or directories, recursively, to an archive.

public create

string $Archive->create ( );

Creates a raw archive file and returns it.

public save

boolean $Archive->save ( string $filename );

Creates an archive and saves it into a file.