BcZip::_extractByPhpLib PHP Method

_extractByPhpLib() protected method

ZipArchive クラスによる展開
protected _extractByPhpLib ( $source, $target ) : boolean
$source
$target
return boolean
    protected function _extractByPhpLib($source, $target)
    {
        if ($this->Zip->open($source) === true && $this->Zip->extractTo($target)) {
            $archivePath = $this->Zip->getNameIndex(0);
            $archivePathAry = explode(DS, $archivePath);
            $this->topArchiveName = $archivePathAry[0];
            return true;
        } else {
            return false;
        }
    }