Property | Type | Description | |
---|---|---|---|
$arrFiles | array | File list | |
$arrHeader | array | Archive header | |
$resFile | resource | File handle | |
$strFile | string | File name |
Method | Description | |
---|---|---|
__construct ( string $strFile ) | Open the archive and return the file handle | |
__destruct ( ) | Close the file handle | |
__get ( string $strKey ) : mixed | null | Return a property of the archive header or the current file | |
current ( ) : array | Return the current file as array | |
first ( ) : |
Go to the first file of the archive | |
getFile ( string $strName ) : boolean | Set the internal pointer to a particular file | |
getFileList ( ) : array | Return a list of all files in the archive | |
last ( ) : |
Go to the last file of the archive | |
next ( ) : |
Go to the next file of the archive | |
prev ( ) : |
Go to the previous file of the archive | |
reset ( ) : |
Reset the archive | |
unzip ( ) : string | Unzip the current file and return its contents as string |
Method | Description | |
---|---|---|
decToUnix ( integer $intTime, integer $intDate ) : integer | Calculate the Unix timestamp from two hexadecimal values | |
readCentralDirectory ( ) : array | Return a list of all files in the archive |
public __construct ( string $strFile ) | ||
$strFile | string | The file path |
public first ( ) : |
||
return | The object instance |
public getFileList ( ) : array | ||
return | array | The files array |
public last ( ) : |
||
return | The object instance |
protected readCentralDirectory ( ) : array | ||
return | array | The files array |
public reset ( ) : |
||
return | The object instance |