Difference between revisions of "JArchiveZip"
From Joomla! Documentation
m (moving preparation) |
m (clean up) |
||
Line 2: | Line 2: | ||
=={{JVer|11.1}} JArchiveZip== | =={{JVer|11.1}} JArchiveZip== | ||
===Description=== | ===Description=== | ||
− | {{Description:JArchiveZip}} | + | {{subst:Description:JArchiveZip}} |
− | + | ||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
Line 66: | Line 64: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage Filesystem|Filesystem]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage Filesystem|Filesystem]] | ||
* [[API17:JArchiveZip|Other versions of JArchiveZip]] | * [[API17:JArchiveZip|Other versions of JArchiveZip]] | ||
− | {{SeeAlso:JArchiveZip}} | + | {{subst:SeeAlso:JArchiveZip}} |
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> |
Revision as of 09:46, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JArchiveZip[edit]
Description[edit]
{{subst:Description:JArchiveZip}}
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | checkZipData | Checks to see if the data is a valid ZIP file. |
public | create | Create a ZIP compressed file from an array of file data. |
public | extract | Extract a ZIP compressed file to a given path. |
public | hasNativeSupport | Method to determine if the server has native zip support for faster handling. |
protected | _addToZIPFile | Adds a "file" to the ZIP archive. |
protected | _createZIPFile | Creates the ZIP file. |
protected | _extract | Extract a ZIP compressed file to a given path using a php based algorithm that only requires zlib support. |
protected | _extractNative | Extract a ZIP compressed file to a given path using native php api calls for speed. |
protected | _getFileData | Returns the file data for a file by offsest in the ZIP archive. |
protected | _getZipInfo | Get the list of files/data from a ZIP archive buffer. |
protected | _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). |
- Defined in libraries/joomla/filesystem/archive/zip.php
- Extends JObject
Importing[edit]
jimport( 'joomla.filesystem.archive.zip' );
See also[edit]
- JArchiveZip source code on BitBucket
- Subpackage Filesystem
- Other versions of JArchiveZip
{{subst:SeeAlso:JArchiveZip}}
User contributed notes[edit]
<CodeExamplesForm />