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

This allows per-source minification options and the mixing of files with content from other sources.
Показать файл Открыть проект

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

Метод Описание
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