Actions

API15

JArchiveZip/checkZipData

From Joomla! Documentation

< API15:JArchiveZip
Revision as of 17:20, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

[Edit Descripton]

Description:JArchiveZip/checkZipData

Syntax

checkZipData(&$data)
Parameter Name Default Value Description
$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;
        }
}

[Edit See Also] SeeAlso:JArchiveZip/checkZipData

Examples

<CodeExamplesForm />