public function getFileFromZip($file)
    {
        if (false !== $content = $this->zip->getFromName($file)) {
            $tmpDir = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
            $fileName = $tmpDir . md5($file) . time() . '.' . pathinfo($file, PATHINFO_EXTENSION);
            file_put_contents($fileName, $content);

            $this->destructible[] = $fileName;

            return $fileName;
        }

        return null;
    }
public function getFileFromZip($file)
    {
        if (false !== $content = $this->zip->getFromName($file)) {
            $tmpDir = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
            $fileName = $tmpDir . md5($file) . time() . '.' . pathinfo($file, PATHINFO_EXTENSION);
            file_put_contents($fileName, $content);

            $this->destructible[] = $fileName;

            return $fileName;
        }

        return null;
    }
public function getFileFromZip ( $ file ) { if ( false !== $ content = $ this -> zip -> getFromName ( $ file ) ) { $ tmpDir = rtrim ( sys_get_temp_dir ( ) , DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR ; $ fileName = $ tmpDir . md5 ( $ file ) . time ( ) . '.' . pathinfo ( $ file , PATHINFO_EXTENSION ) ; file_put_contents ( $ fileName , $ content ) ; $ this -> destructible [ ] = $ fileName ; return $ fileName ; } return null ; }
Retrieves a file from ZipArchive.

@param $file

@return null|string
Retrieves a file from ZipArchive .