Page MenuHomePhorge
Diviner Tech Docs CelerityResourceTransformer

final class CelerityResourceTransformer
Phorge Technical Documentation (Celerity)

This class is not documented.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

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.