Prado\IO\TTarFileExtractor::extract PHP Метод

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

public extract ( $p_path = '' )
    public function extract($p_path = '')
    {
        return $this->extractModify($p_path, '');
    }

Usage Example

Пример #1
0
 /**
  * Extracts the tar file to the destination directory.
  * N.B Tar file must not be compressed.
  * @param string tar file
  * @param string path where the contents of tar file are to be extracted
  * @return boolean true if extract successful, false otherwise.
  */
 protected function deployTarFile($path, $destination)
 {
     if (($fullpath = realpath($path)) === false || !is_file($fullpath)) {
         throw new TIOException('assetmanager_tarfile_invalid', $path);
     } else {
         $tar = new TTarFileExtractor($fullpath);
         return $tar->extract($destination);
     }
 }