33         $this->archiver = 
new tar();
 
   34         $this->ext = trim(
$ext);
 
   35         $this->mimeType = trim($mimyType);
 
   46     public function addFile($filepath, $newfilename = null)
 
   48         $result = $this->archiver->addFile($filepath);
 
   52         if (isset($newfilename)) {
 
   54             for (
$i = 0; 
$i < $this->archiver->numFiles; ++
$i) {
 
   55                 if ($this->archiver->files[
$i][
'name'] == $filepath) {
 
   56                     $this->archiver->files[
$i][
'name'] = trim($newfilename);
 
   73         $result = $this->archiver->addFile($filepath, 
true);
 
   77         if (isset($newfilename)) {
 
   79             for (
$i = 0; 
$i < $this->archiver->numFiles; ++
$i) {
 
   80                 if ($this->archiver->files[
$i][
'name'] == $filepath) {
 
   81                     $this->archiver->files[
$i][
'name'] = trim($newfilename);
 
  100         $fp = @fopen($dummyfile, 
'w');
 
  106         $result = $this->archiver->addFile($dummyfile);
 
  112         for (
$i = 0; 
$i < $this->archiver->numFiles; ++
$i) {
 
  113             if ($this->archiver->files[
$i][
'name'] == $dummyfile) {
 
  114                 $this->archiver->files[
$i][
'name'] = $filename;
 
  116                     $this->archiver->files[
$i][
'time'] = $time;
 
  135         $fp = @fopen($dummyfile, 
'wb');
 
  141         $result = $this->archiver->addFile($dummyfile, 
true);
 
  147         for (
$i = 0; 
$i < $this->archiver->numFiles; ++
$i) {
 
  148             if ($this->archiver->files[
$i][
'name'] == $dummyfile) {
 
  149                 $this->archiver->files[
$i][
'name'] = $filename;
 
  151                     $this->archiver->files[
$i][
'time'] = $time;
 
  169         $str = $this->archiver->toTarOutput(
$name . $this->ext, $gzip);
 
  170         if ($str !== 
false) {
 
download($name, $gzip=true)
 
addBinaryFile($filepath, $newfilename=null)
 
__construct($ext= '.tar.gz', $mimyType= 'application/x-gzip')
 
addFile($filepath, $newfilename=null)
 
addBinaryFileData(&$data, $filename, $time=0)
 
addFileData(&$data, $filename, $time=0)