PHP 클래스 Minify_HTML_Helper, minify

저자: Stephen Clay ([email protected])
파일 보기 프로젝트 열기: mrclay/minify 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$groupsConfigFile
$minAppUri
$rewriteWorks

보호된 프로퍼티들

프로퍼티 타입 설명
$_filePaths ..
$_groupKey
$_lastModified

공개 메소드들

메소드 설명
app ( App $app = null ) : App
getLastModified ( array | string $sources, integer $lastModified ) : integer Get the max(lastModified) of all files
getRawUri ( boolean $farExpires = true, boolean $debug = false ) : string Get non-HTML-escaped URI to minify the specified files
getUri ( string | array $keyOrFiles, array $opts = [] ) : string Get an HTML-escaped Minify URI for a group or set of files
setFiles ( array $files, boolean $checkLastModified = true ) Set the files that will comprise the URI we're building
setGroup ( string $key, boolean $checkLastModified = true ) Set the group of files that will comprise the URI we're building

보호된 메소드들

메소드 설명
_getCommonCharAtPos ( array $arr, integer $pos ) : mixed In a given array of strings, find the character they all have at a particular index
_getShortestUri ( array $paths, string $minRoot = '/min/' ) : string Get the shortest URI to minify the set of source files

메소드 상세

_getCommonCharAtPos() 보호된 정적인 메소드

In a given array of strings, find the character they all have at a particular index
protected static _getCommonCharAtPos ( array $arr, integer $pos ) : mixed
$arr array array of strings
$pos integer index to check
리턴 mixed a common char or '' if any do not match

_getShortestUri() 보호된 정적인 메소드

Get the shortest URI to minify the set of source files
protected static _getShortestUri ( array $paths, string $minRoot = '/min/' ) : string
$paths array root-relative URIs of files
$minRoot string root-relative URI of the "min" application
리턴 string

app() 공개 정적인 메소드

public static app ( App $app = null ) : App
$app Minify\App
리턴 Minify\App

getLastModified() 공개 정적인 메소드

Get the max(lastModified) of all files
public static getLastModified ( array | string $sources, integer $lastModified ) : integer
$sources array | string
$lastModified integer
리턴 integer

getRawUri() 공개 메소드

Get non-HTML-escaped URI to minify the specified files
public getRawUri ( boolean $farExpires = true, boolean $debug = false ) : string
$farExpires boolean
$debug boolean
리턴 string

getUri() 공개 정적인 메소드

Get an HTML-escaped Minify URI for a group or set of files
public static getUri ( string | array $keyOrFiles, array $opts = [] ) : string
$keyOrFiles string | array a group key or array of filepaths/URIs
$opts array options: 'farExpires' : (default true) append a modified timestamp for cache revving 'debug' : (default false) append debug flag 'charset' : (default 'UTF-8') for htmlspecialchars 'minAppUri' : (default '/min') URI of min directory 'rewriteWorks' : (default true) does mod_rewrite work in min app? 'groupsConfigFile' : specify if different
리턴 string

setFiles() 공개 메소드

Set the files that will comprise the URI we're building
public setFiles ( array $files, boolean $checkLastModified = true )
$files array
$checkLastModified boolean

setGroup() 공개 메소드

Set the group of files that will comprise the URI we're building
public setGroup ( string $key, boolean $checkLastModified = true )
$key string
$checkLastModified boolean

프로퍼티 상세

$_filePaths 보호되어 있는 프로퍼티

..
protected $_filePaths

$_groupKey 보호되어 있는 프로퍼티

protected $_groupKey

$_lastModified 보호되어 있는 프로퍼티

protected $_lastModified

$groupsConfigFile 공개적으로 프로퍼티

public $groupsConfigFile

$minAppUri 공개적으로 프로퍼티

public $minAppUri

$rewriteWorks 공개적으로 프로퍼티

public $rewriteWorks