PHP Интерфейс Minify_CacheInterface, minify

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
display ( string $id ) Send the cached content to output
fetch ( string $id ) : string Fetch the cached content
getSize ( string $id ) : integer Get the size of a cache entry
isValid ( string $id, integer $srcMtime ) : boolean Does a valid cache entry exist?
store ( string $id, string $data ) : boolean Write data to cache.

Описание методов

display() публичный Метод

Send the cached content to output
public display ( string $id )
$id string cache id (e.g. a filename)

fetch() публичный Метод

Fetch the cached content
public fetch ( string $id ) : string
$id string cache id (e.g. a filename)
Результат string

getSize() публичный Метод

Get the size of a cache entry
public getSize ( string $id ) : integer
$id string cache id (e.g. a filename)
Результат integer size in bytes

isValid() публичный Метод

Does a valid cache entry exist?
public isValid ( string $id, integer $srcMtime ) : boolean
$id string cache id (e.g. a filename)
$srcMtime integer mtime of the original source file(s)
Результат boolean exists

store() публичный Метод

Write data to cache.
public store ( string $id, string $data ) : boolean
$id string cache id (e.g. a filename)
$data string
Результат boolean success