◆ __construct()
*#- Class Constructor – Does nothing...
◆ __computeUnsignedChecksum()
__computeUnsignedChecksum |
( |
|
$bytestring | ) |
|
Computes the unsigned Checksum of a file's header to try to ensure valid file
- Parameters
-
- Returns
- int|string @access private
◆ __generateTar()
Generates a TAR file from the processed data
- Returns
- bool always TRUE @access private
◆ __parseNullPaddedString()
__parseNullPaddedString |
( |
|
$string | ) |
|
Converts a NULL padded string to a non-NULL padded string
- Parameters
-
- Returns
- string @access private
◆ __parseTar()
This function parses the current TAR file
- Returns
- 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.
- Parameters
-
string | $filename | full filename |
- Returns
- bool always TRUE @access private
◆ addDirectory()
Add a directory to this tar archive
- Parameters
-
- Returns
- bool
◆ addFile()
addFile |
( |
|
$filename, |
|
|
|
$binary = false |
|
) |
| |
Add a file to the tar archive
- Parameters
-
string | $filename | |
boolean | $binary | Binary file? |
- Returns
- bool
◆ appendTar()
Appends a tar file to the end of the currently opened tar file.
- Parameters
-
- Returns
- bool
◆ containsDirectory()
containsDirectory |
( |
|
$dirname | ) |
|
Check if this tar archive contains a specific directory
- Parameters
-
- Returns
- bool
◆ containsFile()
containsFile |
( |
|
$filename | ) |
|
Check if this tar archive contains a specific file
- Parameters
-
- Returns
- bool
◆ getDirectory()
Retrieves information about a directory in the current tar archive
- Parameters
-
- Returns
- string|false FALSE on fail
◆ getFile()
Retrieves information about a file in the current tar archive
- Parameters
-
- Returns
- string|false FALSE on fail
◆ openTAR()
Open a TAR file
- Parameters
-
- Returns
- bool
◆ removeDirectory()
removeDirectory |
( |
|
$dirname | ) |
|
Remove a directory from the tar archive
- Parameters
-
- Returns
- bool
◆ removeFile()
Remove a file from the tar archive
- Parameters
-
- Returns
- bool
◆ saveTar()
Write the currently loaded tar archive to disk
- Returns
- bool
◆ toTar()
toTar |
( |
|
$filename, |
|
|
|
$useGzip |
|
) |
| |
Saves tar archive to a different file than the current file
- Parameters
-
string | $filename | |
bool | $useGzip | Use GZ compression? |
- Returns
- bool
◆ toTarOutput()
toTarOutput |
( |
|
$filename, |
|
|
|
$useGzip |
|
) |
| |
Sends tar archive to stdout
- Parameters
-
string | $filename | |
bool | $useGzip | Use GZ compression? |
- Returns
- string|false
◆ $directories
◆ $filename
*#+ Unprocessed Archive Information
◆ $files
*#- *#+ Processed Archive Information
◆ $isGzipped
◆ $numDirectories
◆ $numFiles
◆ $tar_file
The documentation for this class was generated from the following file: