Page MenuHomeClusterLabs Projects
Diviner Tech Docs CelerityResourceMapGenerator

final class CelerityResourceMapGenerator
Phorge Technical Documentation (Celerity)

This class is not documented.

Methods

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