◆ __construct()
*#- Class Constructor – Does nothing...
◆ __computeUnsignedChecksum()
__computeUnsignedChecksum |
( |
|
$bytestring | ) |
|
Computes the unsigned Checksum of a file's header to try to ensure valid file
- Paramètres
-
- Renvoie
- int|string @access private
◆ __generateTar()
Generates a TAR file from the processed data
- Renvoie
- bool always TRUE @access private
◆ __parseNullPaddedString()
__parseNullPaddedString |
( |
|
$string | ) |
|
Converts a NULL padded string to a non-NULL padded string
- Paramètres
-
- Renvoie
- string @access private
◆ __parseTar()
This function parses the current TAR file
- Renvoie
- bool always TRUE @access private
Unused Header Information
$activeFile["typeflag"] = substr($this->tar_file,$main_offset + 156,1); $activeFile["linkname"] = substr($this->tar_file,$main_offset + 157,100); $activeFile["magic"] = substr($this->tar_file,$main_offset + 257,6); $activeFile["version"] = substr($this->tar_file,$main_offset + 263,2); $activeFile["devmajor"] = substr($this->tar_file,$main_offset + 329,8); $activeFile["devminor"] = substr($this->tar_file,$main_offset + 337,8); $activeFile["prefix"] = substr($this->tar_file,$main_offset + 345,155); $activeFile["endheader"] = substr($this->tar_file,$main_offset + 500,12);
◆ __readTar()
__readTar |
( |
|
$filename = '' | ) |
|
Read a non gzipped tar file in for processing.
- Paramètres
-
string | $filename | full filename |
- Renvoie
- bool always TRUE @access private
◆ addDirectory()
Add a directory to this tar archive
- Paramètres
-
- Renvoie
- bool
◆ addFile()
addFile |
( |
|
$filename, |
|
|
|
$binary = false |
|
) |
| |
Add a file to the tar archive
- Paramètres
-
string | $filename | |
boolean | $binary | Binary file? |
- Renvoie
- bool
◆ appendTar()
Appends a tar file to the end of the currently opened tar file.
- Paramètres
-
- Renvoie
- bool
◆ containsDirectory()
containsDirectory |
( |
|
$dirname | ) |
|
Check if this tar archive contains a specific directory
- Paramètres
-
- Renvoie
- bool
◆ containsFile()
containsFile |
( |
|
$filename | ) |
|
Check if this tar archive contains a specific file
- Paramètres
-
- Renvoie
- bool
◆ getDirectory()
Retrieves information about a directory in the current tar archive
- Paramètres
-
- Renvoie
- string|false FALSE on fail
◆ getFile()
Retrieves information about a file in the current tar archive
- Paramètres
-
- Renvoie
- string|false FALSE on fail
◆ openTAR()
Open a TAR file
- Paramètres
-
- Renvoie
- bool
◆ removeDirectory()
removeDirectory |
( |
|
$dirname | ) |
|
Remove a directory from the tar archive
- Paramètres
-
- Renvoie
- bool
◆ removeFile()
Remove a file from the tar archive
- Paramètres
-
- Renvoie
- bool
◆ saveTar()
Write the currently loaded tar archive to disk
- Renvoie
- bool
◆ toTar()
toTar |
( |
|
$filename, |
|
|
|
$useGzip |
|
) |
| |
Saves tar archive to a different file than the current file
- Paramètres
-
string | $filename | |
bool | $useGzip | Use GZ compression? |
- Renvoie
- bool
◆ toTarOutput()
toTarOutput |
( |
|
$filename, |
|
|
|
$useGzip |
|
) |
| |
Sends tar archive to stdout
- Paramètres
-
string | $filename | |
bool | $useGzip | Use GZ compression? |
- Renvoie
- string
◆ $directories
◆ $filename
*#+ Unprocessed Archive Information
◆ $files
*#- *#+ Processed Archive Information
◆ $isGzipped
◆ $numDirectories
◆ $numFiles
◆ $tar_file
La documentation de cette classe a été générée à partir du fichier suivant :