ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
PHPExcel_CachedObjectStorageFactory Class Reference
+ Collaboration diagram for PHPExcel_CachedObjectStorageFactory:

Static Public Member Functions

static getCacheStorageMethod ()
static getCacheStorageClass ()
static getCacheStorageMethods ()
static initialize ($method=self::cache_in_memory, $arguments=array())
static getInstance (PHPExcel_Worksheet $parent)

Data Fields

const cache_in_memory = 'Memory'
const cache_in_memory_gzip = 'MemoryGZip'
const cache_in_memory_serialized = 'MemorySerialized'
const cache_to_discISAM = 'DiscISAM'
const cache_to_apc = 'APC'
const cache_to_memcache = 'Memcache'
const cache_to_phpTemp = 'PHPTemp'
const cache_to_wincache = 'Wincache'

Static Private Attributes

static $_cacheStorageMethod = null
static $_cacheStorageClass = null
static $_storageMethods
static $_storageMethodDefaultParameters
static $_storageMethodParameters = array()

Detailed Description

Definition at line 3 of file CachedObjectStorageFactory.php.

Member Function Documentation

static PHPExcel_CachedObjectStorageFactory::getCacheStorageClass ( )
static

Definition at line 64 of file CachedObjectStorageFactory.php.

References $_cacheStorageClass.

{
if (!is_null(self::$_cacheStorageClass)) {
}
return null;
} // function getCacheStorageClass()
static PHPExcel_CachedObjectStorageFactory::getCacheStorageMethod ( )
static

Definition at line 56 of file CachedObjectStorageFactory.php.

References $_cacheStorageMethod.

{
if (!is_null(self::$_cacheStorageMethod)) {
}
return null;
} // function getCacheStorageMethod()
static PHPExcel_CachedObjectStorageFactory::getCacheStorageMethods ( )
static

Definition at line 72 of file CachedObjectStorageFactory.php.

References $_storageMethods.

{
} // function getCacheStorageMethods()
static PHPExcel_CachedObjectStorageFactory::getInstance ( PHPExcel_Worksheet  $parent)
static

Definition at line 118 of file CachedObjectStorageFactory.php.

References $_cacheStorageClass, and initialize().

Referenced by PHPExcel_Worksheet\__construct().

{
if (is_null(self::$_cacheStorageMethod)) {
}
$instance = new self::$_cacheStorageClass($parent,self::$_storageMethodParameters[self::$_cacheStorageMethod]);
if (!is_null($instance)) {
return $instance;
}
return false;
} // function getInstance()

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static PHPExcel_CachedObjectStorageFactory::initialize (   $method = self::cache_in_memory,
  $arguments = array() 
)
static

Definition at line 77 of file CachedObjectStorageFactory.php.

Referenced by getInstance(), and PHPExcel_Settings\setCacheStorageMethod().

{
if (!in_array($method,self::$_storageMethods)) {
return false;
}
switch($method) {
case self::cache_to_apc :
if (!function_exists('apc_store')) {
return false;
}
if (apc_sma_info() === false) {
return false;
}
break;
case self::cache_to_memcache :
if (!function_exists('memcache_add')) {
return false;
}
break;
case self::cache_to_wincache :
if (!function_exists('wincache_ucache_add')) {
return false;
}
break;
}
self::$_storageMethodParameters[$method] = self::$_storageMethodDefaultParameters[$method];
foreach($arguments as $k => $v) {
if (isset(self::$_storageMethodParameters[$method][$k])) {
self::$_storageMethodParameters[$method][$k] = $v;
}
}
if (is_null(self::$_cacheStorageMethod)) {
self::$_cacheStorageClass = 'PHPExcel_CachedObjectStorage_'.$method;
self::$_cacheStorageMethod = $method;
}
return true;
} // function initialize()

+ Here is the caller graph for this function:

Field Documentation

PHPExcel_CachedObjectStorageFactory::$_cacheStorageClass = null
staticprivate
PHPExcel_CachedObjectStorageFactory::$_cacheStorageMethod = null
staticprivate
PHPExcel_CachedObjectStorageFactory::$_storageMethodDefaultParameters
staticprivate
Initial value:
array(
self::cache_in_memory => array(
),
self::cache_in_memory_gzip => array(
),
self::cache_in_memory_serialized => array(
),
self::cache_to_phpTemp => array( 'memoryCacheSize' => '1MB'
),
self::cache_to_discISAM => array(
),
self::cache_to_apc => array( 'cacheTime' => 600
),
self::cache_to_memcache => array( 'memcacheServer' => 'localhost',
'memcachePort' => 11211,
'cacheTime' => 600
),
self::cache_to_wincache => array( 'cacheTime' => 600
)
)

Definition at line 31 of file CachedObjectStorageFactory.php.

PHPExcel_CachedObjectStorageFactory::$_storageMethodParameters = array()
staticprivate

Definition at line 53 of file CachedObjectStorageFactory.php.

PHPExcel_CachedObjectStorageFactory::$_storageMethods
staticprivate
Initial value:
array(
self::cache_in_memory,
self::cache_in_memory_gzip,
self::cache_in_memory_serialized,
self::cache_to_phpTemp,
self::cache_to_discISAM,
self::cache_to_apc,
self::cache_to_memcache,
self::cache_to_wincache,
)

Definition at line 19 of file CachedObjectStorageFactory.php.

Referenced by getCacheStorageMethods().

const PHPExcel_CachedObjectStorageFactory::cache_in_memory = 'Memory'

Definition at line 4 of file CachedObjectStorageFactory.php.

const PHPExcel_CachedObjectStorageFactory::cache_in_memory_gzip = 'MemoryGZip'

Definition at line 5 of file CachedObjectStorageFactory.php.

Referenced by ilExcelXMLAdapter\__construct().

const PHPExcel_CachedObjectStorageFactory::cache_in_memory_serialized = 'MemorySerialized'

Definition at line 6 of file CachedObjectStorageFactory.php.

const PHPExcel_CachedObjectStorageFactory::cache_to_apc = 'APC'

Definition at line 8 of file CachedObjectStorageFactory.php.

const PHPExcel_CachedObjectStorageFactory::cache_to_discISAM = 'DiscISAM'

Definition at line 7 of file CachedObjectStorageFactory.php.

const PHPExcel_CachedObjectStorageFactory::cache_to_memcache = 'Memcache'

Definition at line 9 of file CachedObjectStorageFactory.php.

const PHPExcel_CachedObjectStorageFactory::cache_to_phpTemp = 'PHPTemp'

Definition at line 10 of file CachedObjectStorageFactory.php.

const PHPExcel_CachedObjectStorageFactory::cache_to_wincache = 'Wincache'

Definition at line 11 of file CachedObjectStorageFactory.php.


The documentation for this class was generated from the following file: