You are here

private function PHPExcel_Reader_Gnumeric::_gzfileGetContents in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Gnumeric.php \PHPExcel_Reader_Gnumeric::_gzfileGetContents()
1 call to PHPExcel_Reader_Gnumeric::_gzfileGetContents()
PHPExcel_Reader_Gnumeric::loadIntoExisting in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Gnumeric.php
* Loads PHPExcel from file into PHPExcel instance * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Gnumeric.php, line 192

Class

PHPExcel_Reader_Gnumeric
PHPExcel_Reader_Gnumeric

Code

private function _gzfileGetContents($filename) {
  $file = @gzopen($filename, 'rb');
  if ($file !== false) {
    $data = '';
    while (!gzeof($file)) {
      $data .= gzread($file, 1024);
    }
    gzclose($file);
  }
  return $data;
}