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 - 2010 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 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
  24.  * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
  25.  * @version    1.7.3c, 2010-06-01
  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.     // check mbstring.func_overload
  36.     if (ini_get('mbstring.func_overload'2{
  37.         throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');
  38.     }
  39. }
  40.  
  41.  
  42. {
  43.     public static function getCacheStorageMethod({
  44.         return PHPExcel_CachedObjectStorageFactory::$_cacheStorageMethod;
  45.     }    //    function getCacheStorageMethod()
  46.  
  47.  
  48.     public static function getCacheStorageClass({
  49.         return PHPExcel_CachedObjectStorageFactory::$_cacheStorageClass;
  50.     }    //    function getCacheStorageClass()
  51.  
  52.  
  53.     public static function setCacheStorageMethod($method PHPExcel_CachedObjectStorageFactory::cache_in_memory$arguments array()) {
  54.         return PHPExcel_CachedObjectStorageFactory::initialize($method,$arguments);
  55.     }    //    function setCacheStorageMethod()
  56.  
  57.  
  58.     public static function setLocale($locale){
  59.         return PHPExcel_Calculation::getInstance()->setLocale($locale);
  60.     }    //    function setLocale()
  61.  
  62. }

Documentation generated on Tue, 01 Jun 2010 17:05:58 +0200 by phpDocumentor 1.4.3