PHPExcel_Settings
[ class tree: PHPExcel_Settings ] [ index: PHPExcel_Settings ] [ all elements ]

Source for file Settings.php

Documentation is available at Settings.php

  1. <?php
  2. /**
  3.  * PHPExcel
  4.  *
  5.  * Copyright (c) 2006 - 2011 PHPExcel
  6.  *
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU Lesser General Public
  9.  * License as published by the Free Software Foundation; either
  10.  * version 2.1 of the License, or (at your option) any later version.
  11.  *
  12.  * This library is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  * Lesser General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU Lesser General Public
  18.  * License along with this library; if not, write to the Free Software
  19.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  20.  *
  21.  * @category   PHPExcel
  22.  * @package    PHPExcel_Settings
  23.  * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
  24.  * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
  25.  * @version    1.7.6, 2011-02-27
  26.  */
  27.  
  28. /** PHPExcel root directory */
  29. if (!defined('PHPEXCEL_ROOT')) {
  30.     /**
  31.      * @ignore
  32.      */
  33.     define('PHPEXCEL_ROOT'dirname(__FILE__'/../');
  34.     require(PHPEXCEL_ROOT 'PHPExcel/Autoloader.php');
  35. }
  36.  
  37.  
  38. {
  39.     /**    constants */
  40.     const PCLZIP        'PHPExcel_Shared_ZipArchive';
  41.     const ZIPARCHIVE    'ZipArchive';
  42.  
  43.  
  44.     private static $_zipClass    self::ZIPARCHIVE;
  45.  
  46.  
  47.     /**
  48.      * Set the Zip Class to use (PCLZip or ZipArchive)
  49.      *
  50.      * @param     string    $zipClass            PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive
  51.      * @return     boolean                    Success or failure
  52.      */
  53.     public static function setZipClass($zipClass{
  54.         if (($zipClass == self::PCLZIP||
  55.             ($zipClass == self::ZIPARCHIVE)) {
  56.             self::$_zipClass $zipClass;
  57.             return True;
  58.         }
  59.         return False;
  60.     }    //    function setZipClass()
  61.  
  62.  
  63.     /**
  64.      * Return the Zip Class to use (PCLZip or ZipArchive)
  65.      *
  66.      * @return     string                        Zip Class to use    - PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive
  67.      */
  68.     public static function getZipClass({
  69.         return self::$_zipClass;
  70.     }    //    function getZipClass()
  71.  
  72.  
  73.     public static function getCacheStorageMethod({
  74.         return PHPExcel_CachedObjectStorageFactory::$_cacheStorageMethod;
  75.     }    //    function getCacheStorageMethod()
  76.  
  77.  
  78.     public static function getCacheStorageClass({
  79.         return PHPExcel_CachedObjectStorageFactory::$_cacheStorageClass;
  80.     }    //    function getCacheStorageClass()
  81.  
  82.  
  83.     public static function setCacheStorageMethod($method PHPExcel_CachedObjectStorageFactory::cache_in_memory$arguments array()) {
  84.         return PHPExcel_CachedObjectStorageFactory::initialize($method,$arguments);
  85.     }    //    function setCacheStorageMethod()
  86.  
  87.  
  88.     public static function setLocale($locale){
  89.         return PHPExcel_Calculation::getInstance()->setLocale($locale);
  90.     }    //    function setLocale()
  91.  
  92. }

Documentation generated on Sun, 27 Feb 2011 16:33:48 -0800 by phpDocumentor 1.4.3