Page MenuHomenazrin ltd
Diviner Tech Docs CelerityResourceTransformer

final class CelerityResourceTransformer
Phorge Technical Documentation (Celerity)

This class is not documented.

Methods

public function setPostprocessorKey($postprocessor_key)

This method is not documented.
Parameters
$postprocessor_key
Return
wild

public function getPostprocessorKey()

This method is not documented.
Return
wild

public function setTranslateURICallback($translate_uricallback)

This method is not documented.
Parameters
$translate_uricallback
Return
wild

public function setMinify($minify)

This method is not documented.
Parameters
$minify
Return
wild

public function setCelerityMap($celerity_map)

This method is not documented.
Parameters
CelerityResourceMap$celerity_map
Return
wild

public function setRawURIMap($raw_urimap)

This method is not documented.
Parameters
array$raw_urimap
Return
wild

public function getRawURIMap()

This method is not documented.
Return
wild

public function transformResource($path, $data)

This method is not documented.
Parameters
$path
$data
Return
wild

public static function getResourceType($path)

This method is not documented.
Parameters
$path
Return
wild

public function translateResourceURI($matches)

This method is not documented.
Parameters
array$matches
Return
wild

private function replaceCSSVariables($path, $data)

This method is not documented.
Parameters
$path
$data
Return
wild

private function replaceCSSPrintRules($path, $data)

This method is not documented.
Parameters
$path
$data
Return
wild

public function getCSSVariableMap()

This method is not documented.
Return
wild

public function replaceCSSVariable($matches)

This method is not documented.
Parameters
$matches
Return
wild

public function replaceCSSPrintRule($matches)

This method is not documented.
Parameters
$matches
Return
wild

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_nameResource name to attempt to generate a data URI for.
Return
string|nullData URI, or null if we declined to generate one.