Lines Matching refs:Archive

16 class Tar extends Archive
20 protected $comptype = Archive::COMPRESS_AUTO;
34 public function setCompression($level = 9, $type = Archive::COMPRESS_AUTO)
42 if($level == 0) $this->comptype = Archive::COMPRESS_NONE;
43 if($type == Archive::COMPRESS_NONE) $this->complevel = 0;
63 if ($this->comptype === Archive::COMPRESS_GZIP) {
65 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
241 if ($this->comptype == Archive::COMPRESS_AUTO) {
245 if ($this->comptype === Archive::COMPRESS_GZIP) {
247 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
277 throw new ArchiveIOException('Archive has been closed, files can no longer be added');
331 throw new ArchiveIOException('Archive has been closed, files can no longer be added');
373 if ($this->comptype === Archive::COMPRESS_GZIP) {
375 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
392 * This implicitly calls close() on the Archive
399 if ($this->comptype === Archive::COMPRESS_AUTO) {
400 $this->comptype = Archive::COMPRESS_NONE;
403 if ($this->comptype === Archive::COMPRESS_GZIP) {
406 if ($this->comptype === Archive::COMPRESS_BZIP) {
424 if ($this->comptype === Archive::COMPRESS_AUTO) {
441 if ($this->comptype === Archive::COMPRESS_GZIP) {
443 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
462 } elseif ($this->comptype === Archive::COMPRESS_GZIP) {
464 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
484 if ($this->comptype === Archive::COMPRESS_GZIP) {
486 } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
673 if ($comptype === Archive::COMPRESS_GZIP && !function_exists('gzopen')) {
677 if ($comptype === Archive::COMPRESS_BZIP && !function_exists('bzopen')) {
687 * You don't need to call this yourself. It's used when you pass Archive::COMPRESS_AUTO somewhere
701 if(strpos($magic, "\x42\x5a") === 0) return Archive::COMPRESS_BZIP;
702 if(strpos($magic, "\x1f\x8b") === 0) return Archive::COMPRESS_GZIP;
708 return Archive::COMPRESS_GZIP;
710 return Archive::COMPRESS_BZIP;
713 return Archive::COMPRESS_NONE;