29 if (!
defined(
'PHPEXCEL_ROOT')) {
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;
143 return self::$_zipClass;
208 if (!self::setChartRendererName($libraryName))
210 return self::setChartRendererPath($libraryBaseDir);
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;
260 return self::$_chartRendererName;
272 return self::$_chartRendererPath;
289 if (!self::setPdfRendererName($libraryName))
291 return self::setPdfRendererPath($libraryBaseDir);
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;
345 return self::$_pdfRendererName;
356 return self::$_pdfRendererPath;
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)) {
384 self::setLibXmlLoaderOptions(LIBXML_DTDLOAD | LIBXML_DTDATTR);
386 if (version_compare(PHP_VERSION,
'5.2.11') >= 0) {
387 @libxml_disable_entity_loader(self::$_libXmlLoaderOptions == (LIBXML_DTDLOAD | LIBXML_DTDATTR));
389 return self::$_libXmlLoaderOptions;
static getZipClass()
Return the name of the Zip handler Class that PHPExcel is configured to use (PCLZip or ZipArchive) or...
const PDF_RENDERER_DOMPDF
static getPdfRendererPath()
Return the directory path to the PDF Rendering Library that PHPExcel is currently configured to use...
static $_chartRendererName
static setPdfRenderer($libraryName, $libraryBaseDir)
Set details of the external library that PHPExcel should use for rendering PDF files.
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 setLibXmlLoaderOptions($options=null)
Set default options for libxml loader.
static setChartRendererName($libraryName)
Identify to PHPExcel the external library to use for rendering charts.
static getPdfRendererName()
Return the PDF Rendering Library that PHPExcel is currently configured to use (e.g.
static setPdfRendererName($libraryName)
Identify to PHPExcel 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 getChartRendererName()
Return the Chart Rendering Library that PHPExcel is currently configured to use (e.g.
static getCacheStorageClass()
Return the current cache storage class.
static setChartRenderer($libraryName, $libraryBaseDir)
Set details of the external library that PHPExcel should use for rendering charts.
static $_chartRendererPath
static getLibXmlLoaderOptions()
Get default options for libxml loader.
static setZipClass($zipClass)
Set the Zip handler Class that PHPExcel should use for Zip file management (PCLZip or ZipArchive) ...
static $_libXmlLoaderOptions
static getChartRendererPath()
Return the directory path to the Chart Rendering Library that PHPExcel is currently configured to use...
Create styles array
The data for the language used.
static getCacheStorageClass()
Return the name of the class that is currently being used for cell cacheing.
static getCacheStorageMethod()
Return the name of the method that is currently configured for cell cacheing.
static getInstance(PHPExcel $workbook=NULL)
Get an instance of this class.
static setCacheStorageMethod( $method=PHPExcel_CachedObjectStorageFactory::cache_in_memory, $arguments=array())
Set the method that should be used for cell cacheing.
static setPdfRendererPath($libraryBaseDir)
Tell PHPExcel where to find the external library to use for rendering PDF files.
const PDF_RENDERER_TCPDF
Optional PDF Rendering libraries.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
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.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options