JArchiveZip::create: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Create a ZIP compressed file from an array of file data. | Create a ZIP compressed file from an array of file data. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 44: | Line 44: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Filesystem|Filesystem]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Filesystem|Filesystem]] | ||
* [[API17:JArchiveZip::create|Other versions of JArchiveZip::create]] | * [[API17:JArchiveZip::create|Other versions of JArchiveZip::create]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JArchiveZip::create | category=JArchiveZip::create | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 02:21, 25 March 2017
JArchiveZip::create
Description
Create a ZIP compressed file from an array of file data.
public function create (
$archive
$files
$options=array
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $archive | string | Path to save archive. | |
| $files | array | Array of files to add to archive. | |
| $options | array | array() | Compression options (unused). |
- Returns boolean True if successful.
- Defined on line 95 of libraries/joomla/filesystem/archive/zip.php
- Since

See also
JArchiveZip::create source code on BitBucket
Class JArchiveZip
Subpackage Filesystem- Other versions of JArchiveZip::create
User contributed notes
Code Examples