[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/minify/lib/Minify/Cache/ -> ZendPlatform.php (summary)

Class Minify_Cache_ZendPlatform

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

Defines 1 class

Minify_Cache_ZendPlatform:: (7 methods):
  __construct()
  store()
  getSize()
  isValid()
  display()
  fetch()
  _fetch()


Class: Minify_Cache_ZendPlatform  - X-Ref

ZendPlatform-based cache class for Minify

Based on Minify_Cache_APC, uses output_cache_get/put (currently deprecated)

<code>
Minify::setCache(new Minify_Cache_ZendPlatform());
</code>

__construct($expire = 0)   X-Ref
Create a Minify_Cache_ZendPlatform object, to be passed to
Minify::setCache().

param: int $expire seconds until expiration (default = 0
return: null

store($id, $data)   X-Ref
Write data to cache.

param: string $id cache id
param: string $data
return: bool success

getSize($id)   X-Ref
Get the size of a cache entry

param: string $id cache id
return: int size in bytes

isValid($id, $srcMtime)   X-Ref
Does a valid cache entry exist?

param: string $id cache id
param: int $srcMtime mtime of the original source file(s)
return: bool exists

display($id)   X-Ref
Send the cached content to output

param: string $id cache id

fetch($id)   X-Ref
Fetch the cached content

param: string $id cache id
return: string

_fetch($id)   X-Ref
Fetch data and timestamp from ZendPlatform, store in instance

param: string $id
return: bool success



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1