<?php /** * QExcel * * QExcel is heavily based on PHPExcel (http://www.codeplex.com/PHPExcel) * * @package QExcel * @license GNU LGPL (http://www.gnu.org/licenses/lgpl.txt) * @copyright 2012 Qronicle (http://www.qronicle.be) */ // Define the library's root directory and set up the autoloader if (!defined('QEXCEL_ROOT')) { define('QEXCEL_ROOT', dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR); require QEXCEL_ROOT . 'QExcel' . DIRECTORY_SEPARATOR . 'Autoloader.php'; QExcel::addReaderPath(QEXCEL_ROOT . '/QExcel/Reader/', 'QExcel_Reader_'); } /** * QExcel * * The QExcel class acts as a Reader Factory for QExcel. * It provides methods to dynamically create readers or load entire workbooks. * * By default QExcel will only load Readers from its own library. * This can be changed however, by adding custom reader paths and/or types. * * You will probably always need a custom reader path if you want to add additional (or extending) readers. * You can add a path by defining its location, and the class prefix that is used. * For example if you have your readers stored in 'library/MyLib/Reader' and you follow the PEAR naming conventions, * you should add 'library/MyLib/Readers/' with prefix 'MyLib_Reader_'. *