Méthode |
Description |
|
Archive_Tar ( string $p_tarname, string $p_compress = null ) |
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. |
|
_Archive_Tar ( ) |
{{{ destructor |
|
_addFile ( $p_filename, &$p_header, $p_add_dir, $p_remove_dir ) |
{{{ _addFile() |
|
_addList ( $p_list, $p_add_dir, $p_remove_dir ) |
{{{ _addList() |
|
_addString ( $p_filename, $p_string ) |
{{{ _addString() |
|
_append ( $p_filelist, $p_add_dir = '', $p_remove_dir = '' ) |
{{{ _append() |
|
_cleanFile ( ) |
{{{ _cleanFile() |
|
_close ( ) |
{{{ _close() |
|
_dirCheck ( string $p_dir ) : boolean |
Check if a directory exists and create it (including parent
dirs) if not. |
|
_error ( $p_message ) |
{{{ _error() |
|
_extractInString ( string $p_filename ) : a |
This method extract from the archive one file identified by $p_filename. |
|
_extractList ( $p_path, &$p_list_detail, $p_mode, $p_file_list, $p_remove_path ) |
{{{ _extractList() |
|
_isArchive ( $p_filename = NULL ) |
{{{ _isArchive() |
|
_jumpBlock ( $p_len = null ) |
{{{ _jumpBlock() |
|
_maliciousFilename ( string $file ) : boolean |
Detect and report a malicious file name |
|
_openAppend ( ) |
{{{ _openAppend() |
|
_openRead ( ) |
{{{ _openRead() |
|
_openReadWrite ( ) |
{{{ _openReadWrite() |
|
_openWrite ( ) |
{{{ _openWrite() |
|
_pathReduction ( string $p_dir ) : string |
Compress path by changing for example "/dir/foo/. |
|
_readBlock ( ) |
{{{ _readBlock() |
|
_readHeader ( $v_binary_data, &$v_header ) |
{{{ _readHeader() |
|
_readLongHeader ( &$v_header ) |
{{{ _readLongHeader() |
|
_translateWinPath ( $p_path, $p_remove_disk_letter = true ) |
{{{ _translateWinPath() |
|
_warning ( $p_message ) |
{{{ _warning() |
|
_writeBlock ( $p_binary_data, $p_len = null ) |
{{{ _writeBlock() |
|
_writeFooter ( ) |
{{{ _writeFooter() |
|
_writeHeader ( $p_filename, $p_stored_filename ) |
{{{ _writeHeader() |
|
_writeHeaderBlock ( $p_filename, $p_size, $p_mtime, $p_perms, $p_type = '', $p_uid, $p_gid ) |
{{{ _writeHeaderBlock() |
|
_writeLongHeader ( $p_filename ) |
{{{ _writeLongHeader() |
|
add ( array $p_filelist ) : true |
This method add the files / directories that are listed in $p_filelist in
the archive. If the archive does not exist it is created. |
|
addModify ( array $p_filelist, string $p_add_dir, string $p_remove_dir = '' ) : true |
This method add the files / directories listed in $p_filelist at the
end of the existing archive. If the archive does not yet exists it
is created. |
|
addString ( string $p_filename, string $p_string ) : true |
This method add a single string as a file at the
end of the existing archive. If the archive does not yet exists it
is created. |
|
create ( array $p_filelist ) : true |
This method creates the archive file and add the files / directories
that are listed in $p_filelist. |
|
createModify ( array $p_filelist, string $p_add_dir, string $p_remove_dir = '' ) : boolean |
This method creates the archive file and add the files / directories
that are listed in $p_filelist. |
|
extract ( $p_path = '' ) |
{{{ extract() |
|
extractInString ( string $p_filename ) : a |
This method extract from the archive one file identified by $p_filename. |
|
extractList ( array $p_filelist, string $p_path = '', string $p_remove_path = '' ) : true |
This method extract from the archive only the files indicated in the
$p_filelist. These files are extracted in the current directory or
in the directory indicated by the optional $p_path parameter. |
|
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. |
|
listContent ( ) |
{{{ listContent() |
|
setAttribute ( ) : true |
This method set specific attributes of the archive. It uses a variable
list of parameters, in the format attribute code + attribute values :
$arch->setAttribute(ARCHIVE_TAR_ATT_SEPARATOR, ','); |
|