public __construct ( |
||
$archive | ||
Результат |
public function __construct(\Pop\Archive\Archive $archive)
{
if (stripos($archive->getExt(), 'bz') !== false) {
$this->compression = 'bz';
} else {
if (stripos($archive->getExt(), 'gz') !== false) {
$this->compression = 'gz';
}
}
$this->path = $archive->getFullpath();
$this->archive = new \Archive_Tar($this->path);
}