[ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 52 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
require_celerity_resource($symbol, $source_name = 'phabricator') X-Ref |
Include a CSS or JS static resource by name. This function records a dependency for the current page, so when a response is generated it can be included. You can call this method from any context, and it is recommended you invoke it as close to the actual dependency as possible so that page dependencies are minimized. For more information, see @{article:Adding New CSS and JS}. param: string Name of the celerity module to include. This is whatever you return: void |
celerity_generate_unique_node_id() X-Ref |
Generate a node ID which is guaranteed to be unique for the current page, even across Ajax requests. You should use this method to generate IDs for nodes which require a uniqueness guarantee. return: string A string appropriate for use as an 'id' attribute on a DOM |
celerity_get_resource_uri($resource, $source = 'phabricator') X-Ref |
Get the versioned URI for a raw resource, like an image. param: string Path to the raw image. return: string Versioned path to the image, if one is available. |
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |