Managing Children
- protected function canAppendChild() — Test if this View accepts children.
- final public function hasChildren() — Test if an element has no children.
- private function reduceChildren($children) — Reduce effectively-empty lists of children to be actually empty. This recursively removes `null`, `''`, and `array()` from the list of children so that @{method:hasChildren} can more effectively align with expectations.
Other Methods
- public function setViewer($viewer) — Set the user viewing this element.
- public function getViewer() — Get the user viewing this element.
- public function hasViewer() — Test if a viewer has been set on this element.
- final public function appendChild($child) — Append a child to the list of children.
- public function getDefaultResourceSource()
- public function requireResource($symbol)
- public function initBehavior($name, $config)
- public function willRender() — Inconsistent, unreliable pre-rendering hook.
- public function render()
- public function producePhutilSafeHTML()
- public function setLines($lines)
- public function setURI($uri)
- public function setHighlights($array)
- public function disableHighlightOnClick()
- public function setTruncatedFirstBytes($truncated_first_bytes)
- public function setTruncatedFirstLines($truncated_first_lines)
- public function setSymbolMetadata($symbol_metadata)
- public function getSymbolMetadata()
- public function setBlameMap($map)
- public function getBlameMap()
- public function setCoverage($coverage)
- public function getCoverage()
config
- protected function getUser() — Deprecated, use @{method:getViewer}.
1
- final protected function renderChildren() — Produce children for rendering.