Actions

API17

Difference between revisions of "JArchiveZip"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 6: Line 6:
 
===Defined in===
 
===Defined in===
 
libraries/joomla/filesystem/archive/zip.php
 
libraries/joomla/filesystem/archive/zip.php
 +
* see source code in [[jplatform:filesystem/archive/zip.php|BitBucket]]
 
===Subpackage===
 
===Subpackage===
 
[[Subpackage Filesystem/11.1|Filesystem]]
 
[[Subpackage Filesystem/11.1|Filesystem]]
Line 54: Line 55:
 
<source lang="php">jimport( 'joomla.filesystem.archive.zip' );</source>
 
<source lang="php">jimport( 'joomla.filesystem.archive.zip' );</source>
 
===See also===
 
===See also===
 +
* JArchiveZip source code in [[jplatform:filesystem/archive/zip.php|BitBucket]]
 
* [[JArchiveZip|Other versions of this class]]
 
* [[JArchiveZip|Other versions of this class]]
 
{{SeeAlso:JArchiveZip}}
 
{{SeeAlso:JArchiveZip}}

Revision as of 17:49, 23 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton] Description:JArchiveZip

Defined in

libraries/joomla/filesystem/archive/zip.php

Subpackage

Filesystem

Extends

JObject

Extended by

Methods

Method name Description
checkZipData Checks to see if the data is a valid ZIP file.
create Create a ZIP compressed file from an array of file data.
extract Extract a ZIP compressed file to a given path.
hasNativeSupport Method to determine if the server has native zip support for faster handling.
_addToZIPFile Adds a "file" to the ZIP archive.
_createZIPFile Creates the ZIP file.
_extract Extract a ZIP compressed file to a given path using a php based algorithm that only requires zlib support.
_extractNative Extract a ZIP compressed file to a given path using native php api calls for speed.
_getFileData Returns the file data for a file by offsest in the ZIP archive.
_getZipInfo Get the list of files/data from a ZIP archive buffer.
_unix2DOSTime 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).

Importing

jimport( 'joomla.filesystem.archive.zip' );

See also

SeeAlso:JArchiveZip [Edit See Also]

Examples

<CodeExamplesForm />