ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
Settings.php
Go to the documentation of this file.
1 <?php
29 if (!defined('PHPEXCEL_ROOT')) {
33  define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');
34  require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
35 }
36 
37 
39 {
41  const PCLZIP = 'PHPExcel_Shared_ZipArchive';
42  const ZIPARCHIVE = 'ZipArchive';
43 
44 
45  private static $_zipClass = self::ZIPARCHIVE;
46 
47 
54  public static function setZipClass($zipClass) {
55  if (($zipClass == self::PCLZIP) ||
56  ($zipClass == self::ZIPARCHIVE)) {
57  self::$_zipClass = $zipClass;
58  return True;
59  }
60  return False;
61  } // function setZipClass()
62 
63 
69  public static function getZipClass() {
70  return self::$_zipClass;
71  } // function getZipClass()
72 
73 
74  public static function getCacheStorageMethod() {
76  } // function getCacheStorageMethod()
77 
78 
79  public static function getCacheStorageClass() {
81  } // function getCacheStorageClass()
82 
83 
84  public static function setCacheStorageMethod($method = PHPExcel_CachedObjectStorageFactory::cache_in_memory, $arguments = array()) {
85  return PHPExcel_CachedObjectStorageFactory::initialize($method,$arguments);
86  } // function setCacheStorageMethod()
87 
88 
89  public static function setLocale($locale){
90  return PHPExcel_Calculation::getInstance()->setLocale($locale);
91  } // function setLocale()
92 
93 }