API17

JArchiveZip::create: Difference between revisions

From Joomla! Documentation

m See also: moving preparation
m clean up
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.  


{{Description:JArchiveZip::create}}
{{subst:Description:JArchiveZip::create}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JArchiveZip::create|Edit Descripton]]<nowiki>]</nowiki>
</span>
<source lang="php">
<source lang="php">
public function create (
public function create (
Line 46: 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]]
{{SeeAlso:JArchiveZip::create}}
{{subst:SeeAlso:JArchiveZip::create}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JArchiveZip::create|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 14:46, 24 March 2017

Joomla 11.1 JArchiveZip::create

Description

Create a ZIP compressed file from an array of file data.

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

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

{{subst:SeeAlso:JArchiveZip::create}}

User contributed notes

<CodeExamplesForm />