Actions

API15

Difference between revisions of "JArchiveZip/checkZipData"

From Joomla! Documentation

< API15:JArchiveZip
m (removing red link to edit, no existant pages)
 
Line 3: Line 3:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JArchiveZip/checkZipData|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JArchiveZip/checkZipData}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 42: Line 42:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JArchiveZip/checkZipData|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JArchiveZip/checkZipData}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 57: Line 57:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API15]]

Latest revision as of 07:43, 12 May 2013

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.

Contents

Description

Checks to see if the data is a valid ZIP file.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

checkZipData(&$data)
Parameter Name Default Value Description
&$data $data ZIP archive data buffer

Returns

boolean True if valid, false if invalid.

Defined in

libraries/joomla/filesystem/archive/zip.php

Importing

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

Source Body

function checkZipData(& $data) {
        if (strpos($data, $this->_fileHeader) === false) {
                return false;
        } else {
                return true;
        }
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />