class ArchiveTar

Creates a (compressed) Tar archive

@author Vincent Blavet <vincent@phpconcept.net> @version Revision: 1.43 @license http://www.opensource.org/licenses/bsd-license.php New BSD License @package Archive_Tar

Hierarchy

Expanded class hierarchy of ArchiveTar

2 files declare their use of ArchiveTar

File

drupal/core/lib/Drupal/Component/Archiver/ArchiveTar.php, line 59

Namespace

Drupal\Component\Archiver
View source

Members

Namesort descending Modifiers Type Description Overrides
ArchiveTar::$_compress property
ArchiveTar::$_compress_type property
ArchiveTar::$_file property
ArchiveTar::$_separator property
ArchiveTar::$_tarname property
ArchiveTar::$_temp_tarname property
ArchiveTar::add function This method add the files / directories that are listed in $p_filelist in the archive. If the archive does not exist it is created. The method return false and a PEAR error text. The files and directories listed are only added at the end of the…
ArchiveTar::addModify function 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. The $p_filelist parameter can be an array of string, each string representing a filename or a directory…
ArchiveTar::addString function 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.
ArchiveTar::create function This method creates the archive file and add the files / directories that are listed in $p_filelist. If a file with the same name exist and is writable, it is replaced by the new tar. The method return false and a PEAR error text. The $p_filelist…
ArchiveTar::createModify function This method creates the archive file and add the files / directories that are listed in $p_filelist. If the file already exists and is writable, it is replaced by the new tar. It is a create and not an add. If the file exists and is read-only or is a…
ArchiveTar::extract function
ArchiveTar::extractInString function This method extract from the archive one file identified by $p_filename. The return value is a string with the file content, or NULL on error.
ArchiveTar::extractList function 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. If indicated the $p_remove_path can be used in the…
ArchiveTar::extractModify function 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…
ArchiveTar::listContent function
ArchiveTar::loadExtension function OS independent PHP extension load. Remember to take care on the correct extension name for case sensitive OSes. The function is the copy of PEAR::loadExtension().
ArchiveTar::setAttribute function 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, ',');
ArchiveTar::_addFile function
ArchiveTar::_addList function
ArchiveTar::_addString function
ArchiveTar::_append function
ArchiveTar::_cleanFile function
ArchiveTar::_close function
ArchiveTar::_dirCheck function Check if a directory exists and create it (including parent dirs) if not.
ArchiveTar::_error function
ArchiveTar::_extractInString function This method extract from the archive one file identified by $p_filename. The return value is a string with the file content, or NULL on error.
ArchiveTar::_extractList function
ArchiveTar::_isArchive function
ArchiveTar::_jumpBlock function
ArchiveTar::_maliciousFilename function Detect and report a malicious file name
ArchiveTar::_openAppend function
ArchiveTar::_openRead function
ArchiveTar::_openReadWrite function
ArchiveTar::_openWrite function
ArchiveTar::_pathReduction function Compress path by changing for example "/dir/foo/../bar" to "/dir/bar", rand emove double slashes.
ArchiveTar::_readBlock function
ArchiveTar::_readHeader function
ArchiveTar::_readLongHeader function
ArchiveTar::_translateWinPath function
ArchiveTar::_warning function
ArchiveTar::_writeBlock function
ArchiveTar::_writeFooter function
ArchiveTar::_writeHeader function
ArchiveTar::_writeHeaderBlock function
ArchiveTar::_writeLongHeader function
ArchiveTar::__construct function
ArchiveTar::__destruct function