You are here

public static function PHPExcel_CachedObjectStorageFactory::getCacheStorageMethods in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorageFactory.php \PHPExcel_CachedObjectStorageFactory::getCacheStorageMethods()

Return the list of all available cache storage methods

Return value

string[]

1 call to PHPExcel_CachedObjectStorageFactory::getCacheStorageMethods()
CellCollectionTest::testCacheLastCell in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/CellCollectionTest.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorageFactory.php, line 166

Class

PHPExcel_CachedObjectStorageFactory
PHPExcel_CachedObjectStorageFactory

Code

public static function getCacheStorageMethods() {
  $activeMethods = array();
  foreach (self::$_storageMethods as $storageMethod) {
    $cacheStorageClass = 'PHPExcel_CachedObjectStorage_' . $storageMethod;
    if (call_user_func(array(
      $cacheStorageClass,
      'cacheMethodIsAvailable',
    ))) {
      $activeMethods[] = $storageMethod;
    }
  }
  return $activeMethods;
}