Page MenuHomePhabricator
Diviner Phabricator Tech Docs CelerityStaticResourceResponse

final class CelerityStaticResourceResponse
Phabricator 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 __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()

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