ExcelReaderLib.php 748 B

1234567891011121314151617181920212223242526
  1. <?php
  2. App::import('Vendor', 'Tools.SpreadsheetExcelReader', array('file' => 'SpreadsheetExcelReader' . DS . 'SpreadsheetExcelReader.php'));
  3. if (!class_exists('SpreadsheetExcelReader')) {
  4. throw new CakeException('Cannot load SpreadsheetExcelReader class');
  5. }
  6. /**
  7. * Wrapper of the old excel reader for cake.
  8. *
  9. * Just include this class via
  10. * - App::uses('ExcelReaderLib', 'Tools.Lib');
  11. *
  12. * You can use
  13. * - read($file) to read files
  14. * - readFromBlob($content) to read binary data
  15. *
  16. * Then
  17. * - $array = $this->ExcelReader->dumpToArray($optionalPage);
  18. *
  19. * See the test cases for details.
  20. *
  21. * @author Mark Scherer
  22. * @license http://opensource.org/licenses/mit-license.php MIT
  23. */
  24. class ExcelReaderLib extends SpreadsheetExcelReader {
  25. }