PHP 클래스 Minify_Cache_File, minify

상속: implements Minify_CacheInterface
파일 보기 프로젝트 열기: mrclay/minify 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $path = '', boolean $fileLocking = false, Psr\Log\LoggerInterface $logger = null )
display ( string $id ) Send the cached content to output
fetch ( string $id ) : string Fetch the cached content
getPath ( ) : string Fetch the cache path used
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.
tmp ( ) : string Get a usable temp directory

보호된 메소드들

메소드 설명
_log ( string $msg ) : null Send message to the Minify logger

메소드 상세

__construct() 공개 메소드

public __construct ( string $path = '', boolean $fileLocking = false, Psr\Log\LoggerInterface $logger = null )
$path string
$fileLocking boolean
$logger Psr\Log\LoggerInterface

_log() 보호된 메소드

Send message to the Minify logger
사용 중단: Use $this->logger
protected _log ( string $msg ) : null
$msg string
리턴 null

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

getPath() 공개 메소드

Fetch the cache path used
public getPath ( ) : string
리턴 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

tmp() 공개 정적인 메소드

Get a usable temp directory
사용 중단:
public static tmp ( ) : string
리턴 string