[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/spout/src/Spout/Reader/XLSX/Helper/SharedStringsCaching/ -> CachingStrategyFactory.php (summary)

(no description)

File Size: 154 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

CachingStrategyFactory:: (6 methods):
  __construct()
  getInstance()
  getBestCachingStrategy()
  isInMemoryStrategyUsageSafe()
  getMemoryLimitInKB()
  getMemoryLimitFromIni()


Class: CachingStrategyFactory  - X-Ref

Class CachingStrategyFactory

__construct()   X-Ref
Private constructor for singleton


getInstance()   X-Ref
Returns the singleton instance of the factory

return: CachingStrategyFactory

getBestCachingStrategy($sharedStringsUniqueCount, $tempFolder = null)   X-Ref
Returns the best caching strategy, given the number of unique shared strings
and the amount of memory available.

param: int $sharedStringsUniqueCount Number of unique shared strings
param: string|void $tempFolder Temporary folder where the temporary files to store shared strings will be stored
return: CachingStrategyInterface The best caching strategy

isInMemoryStrategyUsageSafe($sharedStringsUniqueCount)   X-Ref
Returns whether it is safe to use in-memory caching, given the number of unique shared strings
and the amount of memory available.

param: int $sharedStringsUniqueCount Number of unique shared strings
return: bool

getMemoryLimitInKB()   X-Ref
Returns the PHP "memory_limit" in Kilobytes

return: float

getMemoryLimitFromIni()   X-Ref
Returns the formatted "memory_limit" value

return: string



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1