Public Member Functions | |
| em_unzip ($p_zipname) | |
| extract ($p_params=0) | |
| errorCode () | |
| errorName ($p_with_code=false) | |
| errorInfo ($p_full=false) | |
| _checkFormat ($p_level=0) | |
| _openFd ($p_mode) | |
| _closeFd () | |
| _convertHeader2FileInfo ($p_header, &$p_info) | |
| _extractByRule (&$p_file_list, &$p_params) | |
| _extractFile (&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_params) | |
| _readFileHeader (&$p_header) | |
| _readCentralFileHeader (&$p_header) | |
| _readEndCentralDir (&$p_central_dir) | |
| _dirCheck ($p_dir, $p_is_dir=false) | |
| _check_parameters (&$p_params, $p_default) | |
| _errorLog ($p_error_code=0, $p_error_string='') | |
| _errorReset () | |
| _tool_PathReduction ($p_dir) | |
| _tool_PathInclusion ($p_dir, $p_path) | |
| _tool_CopyBlock ($p_src, $p_dest, $p_size, $p_mode=0) | |
| _tool_Rename ($p_src, $p_dest) | |
| _tool_TranslateWinPath ($p_path, $p_remove_disk_letter=true) | |
Public Attributes | |
| $_zipname = '' | |
| $_zip_fd = 0 | |
| $_error_code = 1 | |
| $_error_string = '' | |
Karsten Dambekalns <karsten@typo3.org>
Definition at line 89 of file class.em_unzip.php.
| em_unzip::_check_parameters | ( | &$ | p_params, | |
| $ | p_default | |||
| ) |
{ Description }
| integer | $p_error_code | |
| string | $p_error_string |
Definition at line 1094 of file class.em_unzip.php.
References _errorLog(), and errorCode().
Referenced by extract().
| em_unzip::_checkFormat | ( | $ | p_level = 0 |
) |
{ Description }
| integer | $p_level |
Definition at line 264 of file class.em_unzip.php.
References _errorLog(), and _errorReset().
Referenced by extract().
| em_unzip::_closeFd | ( | ) |
| em_unzip::_convertHeader2FileInfo | ( | $ | p_header, | |
| &$ | p_info | |||
| ) |
em_unzip::_convertHeader2FileInfo()
{ Description }
Definition at line 353 of file class.em_unzip.php.
Referenced by _extractByRule(), and _extractFile().
| em_unzip::_dirCheck | ( | $ | p_dir, | |
| $ | p_is_dir = false | |||
| ) |
{ Description }
| [type] | $p_is_dir |
Definition at line 1049 of file class.em_unzip.php.
References _errorLog(), and errorCode().
Referenced by _extractFile().
| em_unzip::_errorLog | ( | $ | p_error_code = 0, |
|
| $ | p_error_string = '' | |||
| ) |
{ Description }
| integer | $p_error_code | |
| string | $p_error_string |
Definition at line 1147 of file class.em_unzip.php.
Referenced by _check_parameters(), _checkFormat(), _dirCheck(), _extractByRule(), _openFd(), _readCentralFileHeader(), _readEndCentralDir(), and _readFileHeader().
| em_unzip::_errorReset | ( | ) |
{ Description }
Definition at line 1158 of file class.em_unzip.php.
Referenced by _checkFormat(), and extract().
| em_unzip::_extractByRule | ( | &$ | p_file_list, | |
| &$ | p_params | |||
| ) |
{ Description }
Definition at line 393 of file class.em_unzip.php.
References _closeFd(), _convertHeader2FileInfo(), _errorLog(), _extractFile(), _openFd(), _readCentralFileHeader(), _readEndCentralDir(), and errorCode().
Referenced by extract().
| em_unzip::_extractFile | ( | &$ | p_entry, | |
| $ | p_path, | |||
| $ | p_remove_path, | |||
| $ | p_remove_all_path, | |||
| &$ | p_params | |||
| ) |
{ Description }
Definition at line 509 of file class.em_unzip.php.
References _convertHeader2FileInfo(), _dirCheck(), _readFileHeader(), and _tool_PathInclusion().
Referenced by _extractByRule().
| em_unzip::_openFd | ( | $ | p_mode | ) |
{ Description }
Definition at line 306 of file class.em_unzip.php.
References _errorLog(), and errorCode().
Referenced by _extractByRule().
| em_unzip::_readCentralFileHeader | ( | &$ | p_header | ) |
em_unzip::_readCentralFileHeader()
{ Description }
Definition at line 830 of file class.em_unzip.php.
References $GLOBALS, _errorLog(), and errorCode().
Referenced by _extractByRule().
| em_unzip::_readEndCentralDir | ( | &$ | p_central_dir | ) |
em_unzip::_readEndCentralDir()
{ Description }
Definition at line 926 of file class.em_unzip.php.
References _errorLog(), and errorCode().
Referenced by _extractByRule().
| em_unzip::_readFileHeader | ( | &$ | p_header | ) |
{ Description }
Definition at line 734 of file class.em_unzip.php.
References $GLOBALS, _errorLog(), and errorCode().
Referenced by _extractFile().
| em_unzip::_tool_CopyBlock | ( | $ | p_src, | |
| $ | p_dest, | |||
| $ | p_size, | |||
| $ | p_mode = 0 | |||
| ) |
| em_unzip::_tool_PathInclusion | ( | $ | p_dir, | |
| $ | p_path | |||
| ) |
| em_unzip::_tool_PathReduction | ( | $ | p_dir | ) |
| em_unzip::_tool_Rename | ( | $ | p_src, | |
| $ | p_dest | |||
| ) |
| em_unzip::_tool_TranslateWinPath | ( | $ | p_path, | |
| $ | p_remove_disk_letter = true | |||
| ) |
{ Description }
| [type] | $p_remove_disk_letter |
Definition at line 1337 of file class.em_unzip.php.
| em_unzip::em_unzip | ( | $ | p_zipname | ) |
em_unzip Class constructor. This flavour of the constructor only declare a new em_unzip object, identifying it by the name of the zip file.
| string | $p_zipname The name of the zip archive to create public |
Definition at line 122 of file class.em_unzip.php.
| em_unzip::errorCode | ( | ) |
Method that gives the lastest error code.
public
Definition at line 201 of file class.em_unzip.php.
Referenced by _check_parameters(), _dirCheck(), _extractByRule(), _openFd(), _readCentralFileHeader(), _readEndCentralDir(), and _readFileHeader().
| em_unzip::errorInfo | ( | $ | p_full = false |
) |
This method returns the description associated with the latest error.
public
| boolean | $p_full If set to true gives the description with the error code, the name and the description. If set to false gives only the description and the error code. |
Definition at line 248 of file class.em_unzip.php.
References errorName().
| em_unzip::errorName | ( | $ | p_with_code = false |
) |
This method gives the latest error code name.
public
| boolean | $p_with_code If true, gives the name and the int value. |
Definition at line 212 of file class.em_unzip.php.
Referenced by errorInfo().
| em_unzip::extract | ( | $ | p_params = 0 |
) |
This method extract the files and folders which are in the zip archive. It can extract all the archive or a part of the archive by using filter feature (extract by name, by index, by ereg, by preg). The extraction can occur in the current path or an other path. All the advanced features are activated by the use of variable parameters. The return value is an array of entry descriptions which gives information on extracted files (See listContent()). The method may return a success value (an array) even if some files are not correctly extracted (see the file status in listContent()). The supported variable parameters for this method are : 'add_path' : Path where the files and directories are to be extracted
public
| mixed | $p_params An array of variable parameters and values. |
Definition at line 162 of file class.em_unzip.php.
References _check_parameters(), _checkFormat(), _errorReset(), and _extractByRule().
| em_unzip::$_error_code = 1 |
Definition at line 107 of file class.em_unzip.php.
| em_unzip::$_error_string = '' |
Definition at line 112 of file class.em_unzip.php.
| em_unzip::$_zip_fd = 0 |
Definition at line 102 of file class.em_unzip.php.
| em_unzip::$_zipname = '' |
Definition at line 95 of file class.em_unzip.php.
1.4.7