protected function PHPExcel_Reader_Abstract::_openFile in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Abstract.php \PHPExcel_Reader_Abstract::_openFile()
* Open file for reading * *
Parameters
string $pFilename: * @throws PHPExcel_Reader_Exception * @return resource
7 calls to PHPExcel_Reader_Abstract::_openFile()
- PHPExcel_Reader_Abstract::canRead in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Abstract.php - * Can the current PHPExcel_Reader_IReader read the file? * *
- PHPExcel_Reader_CSV::listWorksheetInfo in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ CSV.php - * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) * *
- PHPExcel_Reader_CSV::loadIntoExisting in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ CSV.php - * Loads PHPExcel from file into PHPExcel instance * *
- PHPExcel_Reader_Excel2003XML::canRead in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2003XML.php - * Can the current PHPExcel_Reader_IReader read the file? * *
- PHPExcel_Reader_HTML::loadIntoExisting in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ HTML.php - Loads PHPExcel from file into PHPExcel instance
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Abstract.php, line 195
Class
- PHPExcel_Reader_Abstract
- PHPExcel_Reader_Abstract
Code
protected function _openFile($pFilename) {
// Check if file exists
if (!file_exists($pFilename) || !is_readable($pFilename)) {
throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist.");
}
// Open file
$this->_fileHandle = fopen($pFilename, 'r');
if ($this->_fileHandle === FALSE) {
throw new PHPExcel_Reader_Exception("Could not open file " . $pFilename . " for reading.");
}
}