PHP 인터페이스 Minify_SourceInterface, minify

This allows per-source minification options and the mixing of files with content from other sources.
파일 보기 프로젝트 열기: mrclay/minify

공개 메소드들

메소드 설명
getContent ( ) : string Get content
getContentType ( ) : string | null Get the content type
getFilePath ( ) : string | null Get the path of the file that this source is based on (may be null)
getId ( ) : string Get id
getLastModified ( ) : integer Get last modified timestamp
getMinifier ( ) : callable | null Get the minifier
getMinifierOptions ( ) : array Get options for the minifier
setMinifier ( callable $minifier = null ) : void Set the minifier
setMinifierOptions ( array $options ) : void Set options for the minifier

메소드 상세

getContent() 공개 메소드

Get content
public getContent ( ) : string
리턴 string

getContentType() 공개 메소드

Get the content type
public getContentType ( ) : string | null
리턴 string | null

getFilePath() 공개 메소드

Get the path of the file that this source is based on (may be null)
public getFilePath ( ) : string | null
리턴 string | null

getId() 공개 메소드

Get id
public getId ( ) : string
리턴 string

getLastModified() 공개 메소드

Get last modified timestamp
public getLastModified ( ) : integer
리턴 integer

getMinifier() 공개 메소드

Get the minifier
public getMinifier ( ) : callable | null
리턴 callable | null

getMinifierOptions() 공개 메소드

Get options for the minifier
public getMinifierOptions ( ) : array
리턴 array

setMinifier() 공개 메소드

Set the minifier
public setMinifier ( callable $minifier = null ) : void
$minifier callable
리턴 void

setMinifierOptions() 공개 메소드

Set options for the minifier
public setMinifierOptions ( array $options ) : void
$options array
리턴 void