PHP 인터페이스 Minify_CacheInterface, minify

파일 보기 프로젝트 열기: mrclay/minify 0 사용 예제들

공개 메소드들

메소드 설명
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