33 define(
'PHPEXCEL_ROOT', dirname(__FILE__) .
'/../');
34 require(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
42 const PCLZIP =
'PHPExcel_Shared_ZipArchive';
55 self::CHART_RENDERER_JPGRAPH,
59 self::PDF_RENDERER_TCPDF,
60 self::PDF_RENDERER_DOMPDF,
61 self::PDF_RENDERER_MPDF,
124 if (($zipClass === self::PCLZIP) ||
125 ($zipClass === self::ZIPARCHIVE)) {
126 self::$_zipClass = $zipClass;
208 if (!self::setChartRendererName($libraryName))
224 if (!in_array($libraryName,self::$_chartRenderers)) {
228 self::$_chartRendererName = $libraryName;
242 if ((file_exists($libraryBaseDir) ===
false) || (is_readable($libraryBaseDir) ===
false)) {
245 self::$_chartRendererPath = $libraryBaseDir;
289 if (!self::setPdfRendererName($libraryName))
307 if (!in_array($libraryName,self::$_pdfRenderers)) {
311 self::$_pdfRendererName = $libraryName;
325 if ((file_exists($libraryBaseDir) ===
false) || (is_readable($libraryBaseDir) ===
false)) {
328 self::$_pdfRendererPath = $libraryBaseDir;
367 $options = LIBXML_DTDLOAD | LIBXML_DTDATTR;
369 if (version_compare(PHP_VERSION,
'5.2.11') >= 0) {
370 @libxml_disable_entity_loader(
$options == (LIBXML_DTDLOAD | LIBXML_DTDATTR));
372 self::$_libXmlLoaderOptions =
$options;
383 if (is_null(self::$_libXmlLoaderOptions) &&
defined(LIBXML_DTDLOAD)) {
386 if (version_compare(PHP_VERSION,
'5.2.11') >= 0) {
387 @libxml_disable_entity_loader(self::$_libXmlLoaderOptions == (LIBXML_DTDLOAD | LIBXML_DTDATTR));
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
An exception for terminatinating execution or to throw for unit testing.
static getCacheStorageClass()
Return the current cache storage class.
static getCacheStorageMethod()
Return the current cache storage method.
static initialize($method=self::cache_in_memory, $arguments=array())
Identify the cache storage method to use.
static getInstance(PHPExcel $workbook=NULL)
Get an instance of this class.
static setPdfRendererPath($libraryBaseDir)
Tell PHPExcel where to find the external library to use for rendering PDF files.
static setChartRendererPath($libraryBaseDir)
Tell PHPExcel where to find the external library to use for rendering charts.
static $_libXmlLoaderOptions
static getChartRendererPath()
Return the directory path to the Chart Rendering Library that PHPExcel is currently configured to use...
static setPdfRendererName($libraryName)
Identify to PHPExcel the external library to use for rendering PDF files.
static getPdfRendererName()
Return the PDF Rendering Library that PHPExcel is currently configured to use (e.g.
const PDF_RENDERER_TCPDF
Optional PDF Rendering libraries.
static setLibXmlLoaderOptions($options=null)
Set default options for libxml loader.
static setCacheStorageMethod( $method=PHPExcel_CachedObjectStorageFactory::cache_in_memory, $arguments=array())
Set the method that should be used for cell cacheing.
static getPdfRendererPath()
Return the directory path to the PDF Rendering Library that PHPExcel is currently configured to use.
static getZipClass()
Return the name of the Zip handler Class that PHPExcel is configured to use (PCLZip or ZipArchive) or...
static setChartRendererName($libraryName)
Identify to PHPExcel the external library to use for rendering charts.
static $_chartRendererPath
static $_chartRendererName
static setZipClass($zipClass)
Set the Zip handler Class that PHPExcel should use for Zip file management (PCLZip or ZipArchive)
static getCacheStorageClass()
Return the name of the class that is currently being used for cell cacheing.
static setChartRenderer($libraryName, $libraryBaseDir)
Set details of the external library that PHPExcel should use for rendering charts.
const PDF_RENDERER_DOMPDF
static getChartRendererName()
Return the Chart Rendering Library that PHPExcel is currently configured to use (e....
const CHART_RENDERER_JPGRAPH
Optional Chart Rendering libraries.
static setLocale($locale='en_us')
Set the locale code to use for formula translations and any special formatting.
static getLibXmlLoaderOptions()
Get default options for libxml loader.
static getCacheStorageMethod()
Return the name of the method that is currently configured for cell cacheing.
static setPdfRenderer($libraryName, $libraryBaseDir)
Set details of the external library that PHPExcel should use for rendering PDF files.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'