[ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 85 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
PhabricatorMarkupInterface:: (5 methods):
getMarkupFieldKey()
newMarkupEngine()
getMarkupText()
didMarkupText()
shouldUseMarkupCache()
Interface: PhabricatorMarkupInterface - X-Ref
An object which has one or more fields containing markup that can begetMarkupFieldKey($field) X-Ref |
Get a key to identify this field. This should uniquely identify the block of text to be rendered and be usable as a cache key. If the object has a PHID, using the PHID and the field name is likely reasonable: "{$phid}:{$field}" param: string Field name. return: string Cache key up to 125 characters. |
newMarkupEngine($field) X-Ref |
Build the engine the field should use. param: string Field name. return: PhutilRemarkupEngine Markup engine to use. |
getMarkupText($field) X-Ref |
Return the contents of the specified field. param: string Field name. return: string The raw markup contained in the field. |
didMarkupText($field,$output,PhutilMarkupEngine $engine) X-Ref |
Callback for final postprocessing of output. Normally, you can return the output unmodified. param: string Field name. param: string The finalized output of the engine. param: string The engine which generated the output. return: string Final output. |
shouldUseMarkupCache($field) X-Ref |
Determine if the engine should try to use the markup cache or not. Generally you should use the cache for durable/permanent content but should not use the cache for temporary/draft content. return: bool True to use the markup cache. |
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |