| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Source view] [Print] [Project Stats]
(no description)
| Copyright: | Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. |
| License: | GNU/GPL, see LICENSE.php |
| Version: | $Id:zip.php 6961 2007-03-15 16:06:53Z tcp $ |
| File Size: | 516 lines (17 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
JArchiveZip:: (11 methods):
create()
extract()
hasNativeSupport()
checkZipData()
_extract()
_extractNative()
_getZipInfo()
_getFileData()
_unix2DOSTime()
_addToZIPFile()
_createZIPFile()
Class: JArchiveZip - X-Ref
ZIP format adapter for the JArchive class| create($archive, $files, $options = array () X-Ref |
| Create a ZIP compressed file from an array of file data. param: string $archive Path to save archive param: array $files Array of files to add to archive param: array $options Compression options [unused] return: boolean True if successful |
| extract($archive, $destination, $options = array () X-Ref |
| Extract a ZIP compressed file to a given path param: string $archive Path to ZIP archive to extract param: string $destination Path to extract archive into param: array $options Extraction options [unused] return: boolean True if successful |
| hasNativeSupport() X-Ref |
| Method to determine if the server has native zip support for faster handling return: boolean True if php has native ZIP support |
| checkZipData(& $data) X-Ref |
| Checks to see if the data is a valid ZIP file. param: string $data ZIP archive data buffer return: boolean True if valid, false if invalid. |
| _extract($archive, $destination, $options) X-Ref |
| Extract a ZIP compressed file to a given path using a php based algorithm that only requires zlib support param: string $archive Path to ZIP archive to extract param: string $destination Path to extract archive into param: array $options Extraction options [unused] return: boolean True if successful |
| _extractNative($archive, $destination, $options) X-Ref |
| Extract a ZIP compressed file to a given path using native php api calls for speed param: string $archive Path to ZIP archive to extract param: string $destination Path to extract archive into param: array $options Extraction options [unused] return: boolean True if successful |
| _getZipInfo(& $data) X-Ref |
| Get the list of files/data from a ZIP archive buffer. param: string $data The ZIP archive buffer. return: array Archive metadata array |
| _getFileData($key) X-Ref |
| Returns the file data for a file by offsest in the ZIP archive param: int $key The position of the file in the archive. return: string Uncompresed file data buffer |
| _unix2DOSTime($unixtime = null) X-Ref |
| Converts a UNIX timestamp to a 4-byte DOS date and time format (date in high 2-bytes, time in low 2-bytes allowing magnitude comparison). param: int $unixtime The current UNIX timestamp. return: int The current date in a 4-byte DOS format. |
| _addToZIPFile(& $file, & $contents, & $ctrldir) X-Ref |
| Adds a "file" to the ZIP archive. param: array $file File data array to add param: array $contents An array of existing zipped files. param: array $ctrldir An array of central directory information. return: void |
| _createZIPFile(& $contents, & $ctrlDir, $path) X-Ref |
| Creates the ZIP file. Official ZIP file format: http://www.pkware.com/appnote.txt param: array $contents An array of existing zipped files. param: array $ctrldir An array of central directory information. param: string $path The path to store the archive. return: boolean True if successful |
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |