Page MenuHomeClusterLabs Projects
Diviner Tech Docs CelerityStaticResourceResponse

final class CelerityStaticResourceResponse
Phorge Technical Documentation (Celerity)

Tracks and resolves dependencies the page declares with require_celerity_resource(), and then builds appropriate HTML or Ajax responses.

Methods

public function __construct()

This method is not documented.
Return
this//Implicit.//

public function addMetadata($metadata)

This method is not documented.
Parameters
$metadata
Return
wild

public function addContentSecurityPolicyURI($kind, $uri)

This method is not documented.
Parameters
$kind
$uri
Return
wild
This method is not documented.
Return
wild

public function getMetadataBlock()

This method is not documented.
Return
wild

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 initBehavior($behavior, $config, $source_name)

Register a behavior for initialization.

NOTE: If $config is empty, a behavior will execute only once even if it is initialized multiple times. If $config is nonempty, the behavior will be invoked once for each configuration.
Parameters
$behavior
array$config
$source_name
Return
wild

public function requireResource($symbol, $source_name)

This method is not documented.
Parameters
$symbol
$source_name
Return
wild

private function resolveResources()

This method is not documented.
Return
wild

public function renderSingleResource($symbol, $source_name)

This method is not documented.
Parameters
$symbol
$source_name
Return
wild

public function renderResourcesOfType($type)

This method is not documented.
Parameters
$type
Return
wild

private function renderPackagedResources($map, $resources)

This method is not documented.
Parameters
CelerityResourceMap$map
array$resources
Return
wild

private function renderResource($map, $name)

This method is not documented.
Parameters
CelerityResourceMap$map
$name
Return
wild

public function renderHTMLFooter($is_frameable)

This method is not documented.
Parameters
$is_frameable
Return
wild

public static function renderInlineScript($data)

This method is not documented.
Parameters
$data
Return
wild

public function buildAjaxResponse($payload, $error)

This method is not documented.
Parameters
$payload
$error
Return
wild

public function getURI($map, $name, $use_primary_domain)

This method is not documented.
Parameters
CelerityResourceMap$map
$name
$use_primary_domain
Return
wild