PHP 클래스 Minify_Source, minify

This allows per-source minification options and the mixing of files with content from other sources.
저자: Stephen Clay ([email protected])
파일 보기 프로젝트 열기: mrclay/minify 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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