Метод | Описание | |
---|---|---|
__construct ( string $p_tarname ) | 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. | |
__destruct ( ) | ||
extract ( $p_path = '' ) |
Метод | Описание | |
---|---|---|
_dirCheck ( string $p_dir ) : boolean | Check if a directory exists and create it (including parent dirs) if not. | |
_error ( $p_message ) | ||
_extractList ( $p_path, &$p_list_detail, $p_mode, $p_file_list, $p_remove_path ) | ||
_translateWinPath ( $p_path, $p_remove_disk_letter = true ) | ||
extractModify ( string $p_path, string $p_remove_path ) : boolean | 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. |
Метод | Описание | |
---|---|---|
_cleanFile ( ) | ||
_close ( ) | ||
_isArchive ( $p_filename = null ) | ||
_jumpBlock ( $p_len = null ) | ||
_openRead ( ) | ||
_readBlock ( ) | ||
_readHeader ( $v_binary_data, &$v_header ) | ||
_readLongHeader ( &$v_header ) |
public __construct ( string $p_tarname ) | ||
$p_tarname | string | The name of the tar archive to create |
protected _extractList ( $p_path, &$p_list_detail, $p_mode, $p_file_list, $p_remove_path ) |
protected _translateWinPath ( $p_path, $p_remove_disk_letter = true ) |
protected extractModify ( string $p_path, string $p_remove_path ) : boolean | ||
$p_path | string | The path of the directory where the files/dir need to by extracted. |
$p_remove_path | string | Part of the memorized path that can be removed if present at the beginning of the file/dir path. |
Результат | boolean | true on success, false on error. |