[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
TTarFileExtractor class file
Author: | Vincent Blavet <vincent@phpconcept.net> |
Copyright: | Copyright © 1997-2003 The PHP Group |
Version: | $Id: TTarFileExtractor.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 574 lignes (20 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
TTarFileExtractor:: (16 méthodes):
__construct()
__destruct()
extract()
extractModify()
_error()
_isArchive()
_openRead()
_close()
_cleanFile()
_readBlock()
_jumpBlock()
_readHeader()
_readLongHeader()
_extractList()
_dirCheck()
_translateWinPath()
Classe: TTarFileExtractor - X-Ref
TTarFileExtractor class__construct($p_tarname) X-Ref |
Archive_Tar Class constructor. This flavour of the constructor only declare a new Archive_Tar object, identifying it by the name of the tar file. param: string $p_tarname The name of the tar archive to create |
__destruct() X-Ref |
Pas de description |
extract($p_path='') X-Ref |
Pas de description |
extractModify($p_path, $p_remove_path) X-Ref |
This method extract all the content of the archive in the directory indicated by $p_path. When relevant the memorized path of the files/dir can be modified by removing the $p_remove_path path at the beginning of the file/dir path. While extracting a file, if the directory path does not exists it is created. While extracting a file, if the file already exists it is replaced without looking for last modification date. While extracting a file, if the file already exists and is write protected, the extraction is aborted. While extracting a file, if a directory with the same name already exists, the extraction is aborted. While extracting a directory, if a file with the same name already exists, the extraction is aborted. While extracting a file/directory if the destination directory exist and is write protected, or does not exist but can not be created, the extraction is aborted. If after extraction an extracted file does not show the correct stored file size, the extraction is aborted. When the extraction is aborted, a PEAR error text is set and false is returned. However the result can be a partial extraction that may need to be manually cleaned. param: string $p_path The path of the directory where the param: string $p_remove_path Part of the memorized path that can be return: boolean true on success, false on error. |
_error($p_message) X-Ref |
Pas de description |
_isArchive($p_filename=null) X-Ref |
Pas de description |
_openRead() X-Ref |
Pas de description |
_close() X-Ref |
Pas de description |
_cleanFile() X-Ref |
Pas de description |
_readBlock() X-Ref |
Pas de description |
_jumpBlock($p_len=null) X-Ref |
Pas de description |
_readHeader($v_binary_data, &$v_header) X-Ref |
Pas de description |
_readLongHeader(&$v_header) X-Ref |
Pas de description |
_extractList($p_path, &$p_list_detail, $p_mode,$p_file_list, $p_remove_path) X-Ref |
Pas de description |
_dirCheck($p_dir) X-Ref |
Check if a directory exists and create it (including parent dirs) if not. param: string $p_dir directory to check return: bool true if the directory exists or was created |
_translateWinPath($p_path, $p_remove_disk_letter=true) X-Ref |
Pas de description |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |