PHP Класс Minify_Source, minify

This allows per-source minification options and the mixing of files with content from other sources.
Автор: Stephen Clay ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$content string
$contentType HTTP Content Type (Minify requires one of the constants Minify::TYPE_*)
$filepath full path of file
$getContentFunc callable
$id string
$lastModified time of last modification
$minifier minifier function specifically for this source.
$minifyOptions minification options specific to this source.

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

Метод Описание
__construct ( array $spec ) Create a Minify_Source
getContent ( )
getContentType ( )
getFilePath ( )
getId ( )
getLastModified ( )
getMinifier ( )
getMinifierOptions ( )
setMinifier ( $minifier = null )
setMinifierOptions ( array $options )
setupUriRewrites ( )

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

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

In the $spec array(), you can either provide a 'filepath' to an existing file (existence will not be checked!) or give 'id' (unique string for the content), 'content' (the string content) and 'lastModified' (unixtime of last update).
public __construct ( array $spec )
$spec array options

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

public getContent ( )

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

public getContentType ( )

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

public getFilePath ( )

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

public getId ( )

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

public getLastModified ( )

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

public getMinifier ( )

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

public getMinifierOptions ( )

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

public setMinifier ( $minifier = null )

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

public setMinifierOptions ( array $options )
$options array

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

public setupUriRewrites ( )

Описание свойств

$content защищенное свойство

protected string $content
Результат string

$contentType защищенное свойство

HTTP Content Type (Minify requires one of the constants Minify::TYPE_*)
protected $contentType

$filepath защищенное свойство

full path of file
protected $filepath

$getContentFunc защищенное свойство

protected callable $getContentFunc
Результат callable

$id защищенное свойство

protected string $id
Результат string

$lastModified защищенное свойство

time of last modification
protected $lastModified

$minifier защищенное свойство

minifier function specifically for this source.
protected $minifier

$minifyOptions защищенное свойство

minification options specific to this source.
protected $minifyOptions