tarArchive = new Archive_Tar($filename, $compression); } /** * Extracts the contents of the tar file to $pathExtracted. * * @param string $pathExtracted Directory to extract into. * @return bool true if successful, false if otherwise. */ public function extract($pathExtracted) { return $this->tarArchive->extract($pathExtracted); } /** * Extracts one file held in a tar archive and returns the deflated file * as a string. * * @param string $inArchivePath Path to file in the tar archive. * @return bool true if successful, false if otherwise. */ public function extractInString($inArchivePath) { return $this->tarArchive->extractInString($inArchivePath); } /** * Lists the files held in the tar archive. * * @return array List of paths describing everything held in the tar archive. */ public function listContent() { return $this->tarArchive->listContent(); } /** * Get error status string for the latest error. * * @return string */ public function errorInfo() { return $this->tarArchive->error_object->getMessage(); } }