public function setPostprocessorKey($postprocessor_key)
public function setPostprocessorKey($postprocessor_key)
Parameters
$postprocessor_key |
Return
wild |
public function getPostprocessorKey()
public function getPostprocessorKey()
Return
wild |
public function setTranslateURICallback($translate_uricallback)
public function setTranslateURICallback($translate_uricallback)
Parameters
$translate_uricallback |
Return
wild |
public function setMinify($minify)
public function setMinify($minify)
Parameters
$minify |
Return
wild |
public function setCelerityMap($celerity_map)
public function setCelerityMap($celerity_map)
Parameters
CelerityResourceMap | $celerity_map |
Return
wild |
public function setRawURIMap($raw_urimap)
public function setRawURIMap($raw_urimap)
Parameters
array | $raw_urimap |
Return
wild |
public function getRawURIMap()
public function getRawURIMap()
Return
wild |
public function transformResource($path, $data)
public function transformResource($path, $data)
Parameters
$path | ||
$data |
Return
wild |
public static function getResourceType($path)
public static function getResourceType($path)
Parameters
$path |
Return
wild |
public function translateResourceURI($matches)
public function translateResourceURI($matches)
Parameters
array | $matches |
Return
wild |
private function replaceCSSVariables($path, $data)
private function replaceCSSVariables($path, $data)
Parameters
$path | ||
$data |
Return
wild |
private function replaceCSSPrintRules($path, $data)
private function replaceCSSPrintRules($path, $data)
Parameters
$path | ||
$data |
Return
wild |
public function getCSSVariableMap()
public function getCSSVariableMap()
Return
wild |
public function replaceCSSVariable($matches)
public function replaceCSSVariable($matches)
Parameters
$matches |
Return
wild |
public function replaceCSSPrintRule($matches)
public function replaceCSSPrintRule($matches)
Parameters
$matches |
Return
wild |
private function generateDataURI($resource_name)
private function generateDataURI($resource_name)
Attempt to generate a data URI for a resource. We'll generate a data URI if the resource is a valid resource of an appropriate type, and is small enough. Otherwise, this method will return null and we'll end up using a normal URI instead.
Parameters
string | $resource_name | Resource name to attempt to generate a data URI for. |
Return
string|null | Data URI, or null if we declined to generate one. |