UNKNOWN
UNKNOWN = -1 : int
ZIP file entry.
| None found |
| None found |
METHOD_WINZIP_AES = \PhpZip\Constants\ZipCompressionMethod::WINZIP_AES
Pseudo compression method for WinZip AES encrypted entries.
Require php extension openssl or mcrypt.
| None found |
$cdExtraFields : \PhpZip\Model\Extra\ExtraFieldsCollection
Collections of Extra Fields in Central Directory.
Keys from Header ID [int] and value Extra Field [ExtraField].
| None found |
$localExtraFields : \PhpZip\Model\Extra\ExtraFieldsCollection
Collections of Extra Fields int local header.
Keys from Header ID [int] and value Extra Field [ExtraField].
| None found |
$name : string
| None found |
$isDirectory : bool
| None found |
$data : \PhpZip\Model\ZipData|null
| None found |
$createdOS : int
| None found |
$extractedOS : int
| None found |
$softwareVersion : int
| None found |
$extractVersion : int
| None found |
$compressionMethod : int
| None found |
$generalPurposeBitFlags : int
| None found |
$dosTime : int
| None found |
$crc : int
| None found |
$compressedSize : int
| None found |
$uncompressedSize : int
| None found |
$internalAttributes : int
| None found |
$externalAttributes : int
| None found |
$localHeaderOffset : int
| None found |
$comment : string|null
| None found |
$password : string|null
| None found |
$encryptionMethod : int
| None found |
$compressionLevel : int
| None found |
$charset : string|null
| None found |
__construct(string $name, string|null $charset = null) : mixed
ZipEntry constructor.
| string | $name | Entry name |
| string|null | $charset | DOS charset |
| None found |
setCharset(string|null $charset = null) : \PhpZip\Model\ZipEntry
| string|null | $charset |
| None found |
| None found |
| None found |
| None found |
setPlatform(int $platform) : \PhpZip\Model\ZipEntry
| int | $platform |
| None found |
| None found |
setCreatedOS(int $platform) : \PhpZip\Model\ZipEntry
Set platform.
| int | $platform |
| None found |
| None found |
setExtractedOS(int $platform) : \PhpZip\Model\ZipEntry
Set extracted OS.
| int | $platform |
| None found |
| None found |
setSoftwareVersion(int $softwareVersion) : \PhpZip\Model\ZipEntry
| int | $softwareVersion |
| None found |
getVersionNeededToExtract() : int
Version needed to extract.
| None found |
| None found |
setVersionNeededToExtract(int $version) : \PhpZip\Model\ZipEntry
Set version needed to extract.
| int | $version |
| None found |
setExtractVersion(int $version) : \PhpZip\Model\ZipEntry
Set version needed to extract.
| int | $version |
| None found |
getCompressedSize() : int
Returns the compressed size of this entry.
| None found |
| None found |
getUncompressedSize() : int
Returns the uncompressed size of this entry.
| None found |
getLocalHeaderOffset() : int
Return relative Offset Of Local File Header.
| None found |
| None found |
getGeneralPurposeBitFlags() : int
Returns the General Purpose Bit Flags.
| None found |
| None found |
enableDataDescriptor(bool $enabled = true) : mixed
Enabling or disabling the use of the Data Descriptor block.
| bool | $enabled |
| None found |
| None found |
| None found |
isEncrypted() : bool
Returns true if and only if this ZIP entry is encrypted.
| None found |
| None found |
disableEncryption() : \PhpZip\Model\ZipEntry
Sets the encryption property to false and removes any other encryption artifacts.
| None found |
| None found |
getCompressionMethod() : int
Returns the compression method for this entry.
| None found |
setMethod(int $method) : \PhpZip\Model\ZipEntry
Sets the compression method for this entry.
| int | $method |
| None found |
setCompressionMethod(int $compressionMethod) : \PhpZip\Model\ZipEntry
Sets the compression method for this entry.
| int | $compressionMethod |
| None found |
| None found |
| None found |
setDosTime(int $dosTime) : \PhpZip\Model\ZipEntry
Set Dos Time.
| int | $dosTime |
| None found |
setTime(int $unixTimestamp) : \PhpZip\Model\ZipEntry
Set time from unix timestamp.
| int | $unixTimestamp |
| None found |
getExternalAttributes() : int
Returns the external file attributes.
the external file attributes
| None found |
setExternalAttributes(int $externalAttributes) : \PhpZip\Model\ZipEntry
Sets the external file attributes.
| int | $externalAttributes | the external file attributes |
| None found |
getInternalAttributes() : int
Returns the internal file attributes.
the internal file attributes
| None found |
setInternalAttributes(int $internalAttributes) : \PhpZip\Model\ZipEntry
Sets the internal file attributes.
| int | $internalAttributes | the internal file attributes |
| None found |
isDirectory() : bool
Returns true if and only if this ZIP entry represents a directory entry (i.e. end with '/').
| None found |
getCdExtraFields() : \PhpZip\Model\Extra\ExtraFieldsCollection
| None found |
getCdExtraField(int $headerId) : \PhpZip\Model\Extra\ZipExtraField|null
| int | $headerId |
| None found |
setCdExtraFields(\PhpZip\Model\Extra\ExtraFieldsCollection $cdExtraFields) : \PhpZip\Model\ZipEntry
| \PhpZip\Model\Extra\ExtraFieldsCollection | $cdExtraFields |
| None found |
getLocalExtraFields() : \PhpZip\Model\Extra\ExtraFieldsCollection
| None found |
getLocalExtraField(int $headerId) : \PhpZip\Model\Extra\ZipExtraField|null
| int | $headerId |
| None found |
setLocalExtraFields(\PhpZip\Model\Extra\ExtraFieldsCollection $localExtraFields) : \PhpZip\Model\ZipEntry
| \PhpZip\Model\Extra\ExtraFieldsCollection | $localExtraFields |
| None found |
getExtraField(int $headerId) : \PhpZip\Model\Extra\ZipExtraField|null
| int | $headerId |
| None found |
| None found |
| None found |
addExtraField(\PhpZip\Model\Extra\ZipExtraField $zipExtraField) : mixed
| \PhpZip\Model\Extra\ZipExtraField | $zipExtraField |
| None found |
addLocalExtraField(\PhpZip\Model\Extra\ZipExtraField $zipExtraField) : mixed
| \PhpZip\Model\Extra\ZipExtraField | $zipExtraField |
| None found |
addCdExtraField(\PhpZip\Model\Extra\ZipExtraField $zipExtraField) : mixed
| \PhpZip\Model\Extra\ZipExtraField | $zipExtraField |
| None found |
| None found |
setComment(string|null $comment) : \PhpZip\Model\ZipEntry
Set entry comment.
| string|null | $comment |
| None found |
| None found |
| None found |
| None found |
setPassword(string|null $password, int|null $encryptionMethod = null) : \PhpZip\Model\ZipEntry
Set password and encryption method from entry.
| string|null | $password | |
| int|null | $encryptionMethod |
| None found |
| None found |
setEncryptionMethod(int|null $encryptionMethod) : \PhpZip\Model\ZipEntry
Set encryption method.
| int|null | $encryptionMethod |
| None found |
| None found |
setCompressionLevel(int $compressionLevel) : \PhpZip\Model\ZipEntry
| int | $compressionLevel |
| None found |
setUnixMode(int $mode) : \PhpZip\Model\ZipEntry
Sets Unix permissions in a way that is understood by Info-Zip's unzip command.
| int | $mode | mode an int value |
| None found |
| None found |
isZip64ExtensionsRequired() : bool
Offset MUST be considered in decision about ZIP64 format - see description of Data Descriptor in ZIP File Format Specification.
| None found |
isUnixSymlink() : bool
Returns true if this entry represents a unix symlink, in which case the entry's content contains the target path for the symlink.
true if the entry represents a unix symlink, false otherwise
| None found |
| None found |
| None found |
| None found |
| None found |
setName(string $name, string|null $charset = null) : \PhpZip\Model\ZipEntry
Set entry name.
| string | $name | New entry name |
| string|null | $charset |
| None found |
| None found |
setGeneralBitFlag(int $mask, bool $enable) : \PhpZip\Model\ZipEntry
| int | $mask | |
| bool | $enable |
| None found |
| None found |
setEncrypted(bool $encrypted) : \PhpZip\Model\ZipEntry
Sets the encryption flag for this ZIP entry.
| bool | $encrypted |
| None found |
updateGbpfCompLevel() : mixed
Update general purpose bit flogs.
| None found |