Pop\Archive\Adapter\Tar::extract PHP Метод

extract() публичный Метод

Method to extract an archived and/or compressed file
public extract ( string $to = null ) : void
$to string
Результат void
    public function extract($to = null)
    {
        if ($this->compression == 'bz') {
            $this->path = Compress\Bzip2::decompress($this->path);
            $this->archive = new \Archive_Tar($this->path);
        } else {
            if ($this->compression == 'gz') {
                $this->path = Compress\Gzip::decompress($this->path);
                $this->archive = new \Archive_Tar($this->path);
            }
        }
        $this->archive->extract(null !== $to ? $to : './');
    }