[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/view/ -> AphrontView.php (summary)

(no description)

File Size: 162 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  setUser()
  getUser()
  canAppendChild()
  appendChild()
  renderChildren()
  hasChildren()
  reduceChildren()
  getDefaultResourceSource()
  requireResource()
  initBehavior()
  producePhutilSafeHTML()

Functions
Functions that are not part of a class:

setUser(PhabricatorUser $user)   X-Ref


getUser()   X-Ref


canAppendChild()   X-Ref
Test if this View accepts children.

By default, views accept children, but subclases may override this method
to prevent children from being appended. Doing so will cause
@{method:appendChild} to throw exceptions instead of appending children.

return: bool   True if the View should accept children.

appendChild($child)   X-Ref
Append a child to the list of children.

This method will only work if the view supports children, which is
determined by @{method:canAppendChild}.

param: wild   Something renderable.
return: this

renderChildren()   X-Ref
Produce children for rendering.

Historically, this method reduced children to a string representation,
but it no longer does.

return: wild Renderable children.

hasChildren()   X-Ref
Test if an element has no children.

return: bool True if this element has children.

reduceChildren(array $children)   X-Ref
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.

NOTE: Because View children are not rendered, a View which renders down
to nothing will not be reduced by this method.

param: list<wild>  Renderable children.
return: list<wild>  Reduced list of children.

getDefaultResourceSource()   X-Ref
No description

requireResource($symbol)   X-Ref
No description

initBehavior($name, $config = array()   X-Ref
No description

producePhutilSafeHTML()   X-Ref
No description



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1