Page MenuHomePhorge
Diviner Tech Docs CelerityResourceMapGenerator

final class CelerityResourceMapGenerator
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 __construct($resources)

This method is not documented.
Parameters
CelerityPhysicalResources$resources
Return
this//Implicit.//

public function getNameMap()

This method is not documented.
Return
wild

public function getSymbolMap()

This method is not documented.
Return
wild

public function getRequiresMap()

This method is not documented.
Return
wild

public function getPackageMap()

This method is not documented.
Return
wild

public function setDebug($debug)

This method is not documented.
Parameters
$debug
Return
wild

protected function log($message)

This method is not documented.
Parameters
$message
Return
wild

public function generate()

This method is not documented.
Return
wild

public function write()

This method is not documented.
Return
wild

private function formatMapContent($data)

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

private function rebuildBinaryResources($resources)

Find binary resources (like PNG and SWF) and return information about them.

Parameters
CelerityPhysicalResources$resourcesResource map to find binary resources for.
Return
map<string, map<string, string>>Resource information map.

private function rebuildTextResources($resources, $xformer)

Find text resources (like JS and CSS) and return information about them.

Parameters
CelerityPhysicalResources$resourcesResource map to find text resources for.
CelerityResourceTransformer$xformerConfigured resource transformer.
Return
map<string, map<string, string>>Resource information map.

private function getProvidesAndRequires($name, $data)

Parse the @provides and @requires symbols out of a text resource, like JS or CSS.

Parameters
string$nameResource name.
string$dataResource data.
Return
pair<string|null, list<string>|null>The `@provides` symbol and the list of `@requires` symbols. If the resource is not part of the dependency graph, both are null.

private function detectGraphCycles($nodes)

Check for dependency cycles in the resource graph. Raises an exception if a cycle is detected.

Parameters
map<string,$nodeslist<string>> Map of `@provides` symbols to their `@requires` symbols.
Return
void

private function rebuildPackages($resources, $symbol_map, $reverse_map)

Build package specifications for a given resource source.

Parameters
CelerityPhysicalResources$resourcesResource source to rebuild.
map<string,$symbol_mapstring> Map of `@provides` to hashes.
map<string,$reverse_mapstring> Map of hashes to resource names.
Return
map<string, map<string, string>>Package information maps.

private function mergeNameMaps($maps)

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

private function parseResourceSymbolList($list)

This method is not documented.
Parameters
$list
Return
wild

private function newResourceHash($data)

This method is not documented.
Parameters
$data
Return
wild