Lines Matching refs:Archive
16 class Tar extends Archive
21 protected $comptype = Archive::COMPRESS_AUTO;
38 public function setCompression($level = 9, $type = Archive::COMPRESS_AUTO)
46 if($level == 0) $this->comptype = Archive::COMPRESS_NONE;
47 if($type == Archive::COMPRESS_NONE) $this->complevel = 0;
67 if ($this->comptype === Archive::COMPRESS_GZIP) {
69 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
271 if ($this->comptype == Archive::COMPRESS_AUTO) {
275 if ($this->comptype === Archive::COMPRESS_GZIP) {
277 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
417 if ($this->comptype === Archive::COMPRESS_GZIP) {
419 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
443 if ($this->comptype === Archive::COMPRESS_AUTO) {
444 $this->comptype = Archive::COMPRESS_NONE;
447 if ($this->comptype === Archive::COMPRESS_GZIP) {
450 if ($this->comptype === Archive::COMPRESS_BZIP) {
468 if ($this->comptype === Archive::COMPRESS_AUTO) {
485 if ($this->comptype === Archive::COMPRESS_GZIP) {
487 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
508 } elseif ($this->comptype === Archive::COMPRESS_GZIP) {
510 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
530 if ($this->comptype === Archive::COMPRESS_GZIP) {
532 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
720 if ($comptype === Archive::COMPRESS_GZIP && !function_exists('gzopen')) {
724 if ($comptype === Archive::COMPRESS_BZIP && !function_exists('bzopen')) {
748 if(strpos($magic, "\x42\x5a") === 0) return Archive::COMPRESS_BZIP;
749 if(strpos($magic, "\x1f\x8b") === 0) return Archive::COMPRESS_GZIP;
755 return Archive::COMPRESS_GZIP;
757 return Archive::COMPRESS_BZIP;
760 return Archive::COMPRESS_NONE;