public static function PHPExcel_CachedObjectStorageFactory::getInstance in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorageFactory.php \PHPExcel_CachedObjectStorageFactory::getInstance()
Initialise the cache storage
Parameters
PHPExcel_Worksheet $parent Enable cell caching for this worksheet:
Return value
PHPExcel_CachedObjectStorage_ICache
1 call to PHPExcel_CachedObjectStorageFactory::getInstance()
- PHPExcel_Worksheet::__construct in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet.php - Create a new worksheet
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorageFactory.php, line 220
Class
- PHPExcel_CachedObjectStorageFactory
- PHPExcel_CachedObjectStorageFactory
Code
public static function getInstance(PHPExcel_Worksheet $parent) {
$cacheMethodIsAvailable = TRUE;
if (self::$_cacheStorageMethod === NULL) {
$cacheMethodIsAvailable = self::initialize();
}
if ($cacheMethodIsAvailable) {
$instance = new self::$_cacheStorageClass($parent, self::$_storageMethodParameters[self::$_cacheStorageMethod]);
if ($instance !== NULL) {
return $instance;
}
}
return FALSE;
}