Moodle  2.2.1
http://www.collinsharper.com
Minify_Cache_File Class Reference

Public Member Functions

 __construct ($path= '', $fileLocking=false)
 store ($id, $data)
 getSize ($id)
 isValid ($id, $srcMtime)
 display ($id)
 fetch ($id)
 getPath ()

Detailed Description

Definition at line 7 of file File.php.


Constructor & Destructor Documentation

__construct ( path = '',
fileLocking = false 
)

Definition at line 9 of file File.php.

Here is the call graph for this function:


Member Function Documentation

display ( id)

Send the cached content to output

Parameters:
string$idcache id (e.g. a filename)

Definition at line 79 of file File.php.

fetch ( id)

Fetch the cached content

Parameters:
string$idcache id (e.g. a filename)
Returns:
string

Definition at line 99 of file File.php.

Here is the caller graph for this function:

getPath ( )

Fetch the cache path used

Returns:
string

Definition at line 118 of file File.php.

getSize ( id)

Get the size of a cache entry

Parameters:
string$idcache id (e.g. a filename)
Returns:
int size in bytes

Definition at line 54 of file File.php.

isValid ( id,
srcMtime 
)

Does a valid cache entry exist?

Parameters:
string$idcache id (e.g. a filename)
int$srcMtimemtime of the original source file(s)
Returns:
bool exists

Definition at line 68 of file File.php.

store ( id,
data 
)

Write data to cache.

Parameters:
string$idcache id (e.g. a filename)
string$data
Returns:
bool success

Definition at line 28 of file File.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations