API17

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.  


{{subst:Description:JArchiveZip::create}}
 


<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]]
{{subst:SeeAlso:JArchiveZip::create}}
 


===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JArchiveZip::create
category=JArchiveZip::create
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*

Latest revision as of 02:21, 25 March 2017

Joomla 11.1 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 Joomla 11.1

See also


User contributed notes

Code Examples