
Public Member Functions | |
| __construct () | |
| Constructor. | |
| isAvailable () | |
| Tests if the handler's zip functions are available or not. | |
| createZip (spunQ_Folder $folder, $archiveName, array $fileNodes) | |
| Creates a zipfile. | |
| extract (spunQ_ArchiveFile $file, spunQ_Folder $folder) | |
| Extracts the contents of an archive into given folder. | |
Static Public Member Functions | |
| static | getInstance () |
| Retrieves Singleton. | |
| static | setHandler (spunQ_ZipHandler $handler) |
| Sets the zip handler. | |
Static Private Attributes | |
| static | $registeredHandlers = array() |
| Array of all registered handlers. | |
| static | $instance |
| Singleton instance. | |
Definition at line 6 of file ZipHandler.class.php.
| spunQ_ZipHandler::__construct | ( | ) |
Constructor.
Adds itself to $registeredHandlers.
Definition at line 57 of file ZipHandler.class.php.
| spunQ_ZipHandler::createZip | ( | spunQ_Folder $ | folder, | |
| $ | archiveName, | |||
| array $ | fileNodes | |||
| ) | [abstract] |
Creates a zipfile.
| $folder | A spunQ_Folder where the archive should be created. | |
| $archiveName | A string which is the name of the zipfile to be created; NOTE: this name should end in ".zip"!! | |
| $fileNodes | An array of spunQ_FileNodes to be zipped. |
| spunQ_IOException |
Reimplemented in spunQ_PhpZipHandler.
| spunQ_IArchiveHandler::extract | ( | spunQ_ArchiveFile $ | file, | |
| spunQ_Folder $ | folder | |||
| ) | [inherited] |
Extracts the contents of an archive into given folder.
| $file | The archive to extract | |
| $folder | The folder to extract to |
| spunQ_IOException |
Implemented in spunQ_PhpZipHandler.
| static spunQ_ZipHandler::getInstance | ( | ) | [static] |
Retrieves Singleton.
Reimplemented in spunQ_PhpZipHandler.
Definition at line 24 of file ZipHandler.class.php.
| spunQ_ZipHandler::isAvailable | ( | ) | [abstract] |
Tests if the handler's zip functions are available or not.
Reimplemented in spunQ_PhpZipHandler.
| static spunQ_ZipHandler::setHandler | ( | spunQ_ZipHandler $ | handler | ) | [static] |
Sets the zip handler.
Mainly for testing purposes.
| $handler | The handler to use |
Definition at line 45 of file ZipHandler.class.php.
spunQ_ZipHandler::$instance [static, private] |
Singleton instance.
Reimplemented in spunQ_PhpZipHandler.
Definition at line 18 of file ZipHandler.class.php.
spunQ_ZipHandler::$registeredHandlers = array() [static, private] |
Array of all registered handlers.
Definition at line 12 of file ZipHandler.class.php.
1.5.9