You are here

public static function PHPExcel_IOFactory::identify in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/IOFactory.php \PHPExcel_IOFactory::identify()

* Identify file type using automatic PHPExcel_Reader_IReader resolution * * @static * @access public *

Parameters

string $pFilename The name of the spreadsheet file to identify: * @return string * @throws PHPExcel_Reader_Exception

1 call to PHPExcel_IOFactory::identify()
XMLReader.php in vendor/phpoffice/phpexcel/Examples/XMLReader.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/IOFactory.php, line 204

Class

PHPExcel_IOFactory
PHPExcel_IOFactory

Code

public static function identify($pFilename) {
  $reader = self::createReaderForFile($pFilename);
  $className = get_class($reader);
  $classType = explode('_', $className);
  unset($reader);
  return array_pop($classType);
}