API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JArchiveZip::_addToZIPFile | ( | &$ | file, |
&$ | contents, | ||
&$ | ctrldir | ||
) |
JArchiveZip::_createZIPFile | ( | &$ | contents, |
&$ | ctrlDir, | ||
$ | path | ||
) |
Creates the ZIP file. Official ZIP file format: http://www.pkware.com/appnote.txt
private
array | $contents | An array of existing zipped files. |
array | $ctrldir | An array of central directory information. |
string | $path | The path to store the archive. |
Références $data, $path, et JFile::write().
JArchiveZip::_extract | ( | $ | archive, |
$ | destination, | ||
$ | options | ||
) |
Extract a ZIP compressed file to a given path using a php based algorithm that only requires zlib support
private
string | $archive | Path to ZIP archive to extract |
string | $destination | Path to extract archive into |
array | $options | Extraction options [unused] |
Références $i, $n, $path, JPath::clean(), JFolder::create(), JFile::read(), et JFile::write().
JArchiveZip::_extractNative | ( | $ | archive, |
$ | destination, | ||
$ | options | ||
) |
Extract a ZIP compressed file to a given path using native php api calls for speed
private
string | $archive | Path to ZIP archive to extract |
string | $destination | Path to extract archive into |
array | $options | Extraction options [unused] |
Références $file, JFolder::create(), et JFile::write().
JArchiveZip::_getFileData | ( | $ | key | ) |
Returns the file data for a file by offsest in the ZIP archive
private
int | $key | The position of the file in the archive. |
Références elseif.
JArchiveZip::_getZipInfo | ( | &$ | data | ) |
Get the list of files/data from a ZIP archive buffer.
private
string | $data | The ZIP archive buffer. |
KEY: Position in zipfile VALUES: 'attr' -- File attributes 'crc' -- CRC checksum 'csize' -- Compressed file size 'date' -- File modification time 'name' -- Filename 'method' -- Compression method 'size' -- Original file size 'type' -- File type
JArchiveZip::_unix2DOSTime | ( | $ | unixtime = null | ) |
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).
private
int | $unixtime | The current UNIX timestamp. |
JArchiveZip::checkZipData | ( | &$ | data | ) |
Checks to see if the data is a valid ZIP file.
public
string | $data | ZIP archive data buffer |
Références $data.
JArchiveZip::create | ( | $ | archive, |
$ | files, | ||
$ | options = array () |
||
) |
Create a ZIP compressed file from an array of file data.
public
string | $archive | Path to save archive |
array | $files | Array of files to add to archive |
array | $options | Compression options [unused] |
Références $file.
JArchiveZip::extract | ( | $ | archive, |
$ | destination, | ||
$ | options = array () |
||
) |
Extract a ZIP compressed file to a given path
public
string | $archive | Path to ZIP archive to extract |
string | $destination | Path to extract archive into |
array | $options | Extraction options [unused] |
Références JError::raiseWarning().
JArchiveZip::hasNativeSupport | ( | ) |
Method to determine if the server has native zip support for faster handling
public
JArchiveZip::$_ctrlDirEnd = "\x50\x4b\x05\x06\x00\x00\x00\x00" |
JArchiveZip::$_ctrlDirHeader = "\x50\x4b\x01\x02" |
JArchiveZip::$_data = null |
JArchiveZip::$_fileHeader = "\x50\x4b\x03\x04" |
JArchiveZip::$_metadata = null |
JArchiveZip::$_methods |
array ( 0x0 => 'None', 0x1 => 'Shrunk', 0x2 => 'Super Fast', 0x3 => 'Fast', 0x4 => 'Normal', 0x5 => 'Maximum', 0x6 => 'Imploded', 0x8 => 'Deflated' )