Property | Type | Description | |
---|---|---|---|
$groupsConfigFile | |||
$minAppUri | |||
$rewriteWorks |
Property | Type | Description | |
---|---|---|---|
$_filePaths | .. | ||
$_groupKey | |||
$_lastModified |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
_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 |
public static app ( |
||
$app | ||
return |
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 |
return | string |