PHP Classes & Interfaces


Name: ZipArchive

Date: May-27-2017
PHP version: 5.3.3
Type: Internal

class ZipArchive

Public Methods

public open ( $source, $flags )

public close ( )

public getStatusString ( )

public addEmptyDir ( $dirname )

public addFromString ( $name, $content )

public addFile ( $filepath, $entryname, $start, $length )

public addGlob ( $pattern, $flags, $options )

public addPattern ( $pattern, $path, $options )

public renameIndex ( $index, $new_name )

public renameName ( $name, $new_name )

public setArchiveComment ( $name, $comment )

public getArchiveComment ( )

public setCommentIndex ( $index, $comment )

public setCommentName ( $name, $comment )

public getCommentIndex ( $index )

public getCommentName ( $name )

public deleteIndex ( $index )

public deleteName ( $name )

public statName ( $filename, $flags )

public statIndex ( $index, $flags )

public locateName ( $filename, $flags )

public getNameIndex ( $index, $flags )

public unchangeArchive ( )

public unchangeAll ( )

public unchangeIndex ( $index )

public unchangeName ( $name )

public extractTo ( $pathto, $files )

public getFromName ( $entryname, $len, $flags )

public getFromIndex ( $index, $len, $flags )

public getStream ( $entryname )

Constants

const CREATE = 1

const EXCL = 2

const CHECKCONS = 4

const OVERWRITE = 8

const FL_NOCASE = 1

const FL_NODIR = 2

const FL_COMPRESSED = 4

const FL_UNCHANGED = 8

const CM_DEFAULT = -1

const CM_STORE = 0

const CM_SHRINK = 1

const CM_REDUCE_1 = 2

const CM_REDUCE_2 = 3

const CM_REDUCE_3 = 4

const CM_REDUCE_4 = 5

const CM_IMPLODE = 6

const CM_DEFLATE = 8

const CM_DEFLATE64 = 9

const CM_PKWARE_IMPLODE = 10

const ER_OK = 0

const ER_MULTIDISK = 1

const ER_RENAME = 2

const ER_CLOSE = 3

const ER_SEEK = 4

const ER_READ = 5

const ER_WRITE = 6

const ER_CRC = 7

const ER_ZIPCLOSED = 8

const ER_NOENT = 9

const ER_EXISTS = 10

const ER_OPEN = 11

const ER_TMPOPEN = 12

const ER_ZLIB = 13

const ER_MEMORY = 14

const ER_CHANGED = 15

const ER_COMPNOTSUPP = 16

const ER_EOF = 17

const ER_INVAL = 18

const ER_NOZIP = 19

const ER_INTERNAL = 20

const ER_INCONS = 21

const ER_REMOVE = 22

const ER_DELETED = 23