Page MenuHomeIsabelle/Phabricator

final class PholioTransactionView
Phabricator Technical Documentation (Pholio)

This class is not documented.

Tasks

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

config

  • public function setUser($user) — Deprecated, use @{method:setViewer}.
  • protected function getUser() — Deprecated, use @{method:getViewer}.

1

  • final protected function renderChildren() — Produce children for rendering.

Methods

public function setViewer($viewer)
Inherited

AphrontView

Set the user viewing this element.

Parameters
PhabricatorUser$viewerViewing user.
Return
this

public function getViewer()
Inherited

AphrontView

Get the user viewing this element.

Throws an exception if no viewer has been set.

Return
PhabricatorUserViewing user.

public function hasViewer()
Inherited

AphrontView

Test if a viewer has been set on this element.

Return
boolTrue if a viewer is available.

public function setUser($user)
Inherited

AphrontView

Deprecated, use setViewer().

Parameters
PhabricatorUser$user
Return
wild

protected function getUser()
Inherited

AphrontView

Deprecated, use getViewer().

Return
wild

protected function canAppendChild()
Inherited

AphrontView

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 appendChild() to throw exceptions instead of appending children.

Return
boolTrue if the View should accept children.

final public function appendChild($child)
Inherited

AphrontView

Append a child to the list of children.

This method will only work if the view supports children, which is determined by canAppendChild().

Parameters
wild$childSomething renderable.
Return
this

final protected function renderChildren()
Inherited

AphrontView

Produce children for rendering.

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

Return
wildRenderable children.

final public function hasChildren()
Inherited

AphrontView

Test if an element has no children.

Return
boolTrue if this element has children.

private function reduceChildren($children)
Inherited

AphrontView

Reduce effectively-empty lists of children to be actually empty. This recursively removes null, '', and array() from the list of children so that 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.
Parameters
list<wild>$childrenRenderable children.
Return
list<wild>Reduced list of children.

public function getDefaultResourceSource()
Inherited

This method is not documented.
Return
wild

public function requireResource($symbol)
Inherited

This method is not documented.
Parameters
$symbol
Return
wild

public function initBehavior($name, $config)
Inherited

This method is not documented.
Parameters
$name
$config
Return
wild

public function willRender()
Inherited

AphrontView

Inconsistent, unreliable pre-rendering hook.

This hook may fire before views render. It is not fired reliably, and may fire multiple times.

If it does fire, views might use it to register data for later loads, but almost no datasources support this now; this is currently only useful for tokenizers. This mechanism might eventually see wider support or might be removed.

Return
wild

public function render()
Inherited

This method is not documented.
Return
wild

public function producePhutilSafeHTML()
Inherited

This method is not documented.
Return
wild

public function setRenderAsFeed($feed)
Inherited

This method is not documented.
Parameters
$feed
Return
wild

public function setQuoteRef($quote_ref)
Inherited

This method is not documented.
Parameters
$quote_ref
Return
wild

public function getQuoteRef()
Inherited

This method is not documented.
Return
wild

public function setQuoteTargetID($quote_target_id)
Inherited

This method is not documented.
Parameters
$quote_target_id
Return
wild

public function getQuoteTargetID()
Inherited

This method is not documented.
Return
wild

public function setObjectPHID($object_phid)
Inherited

This method is not documented.
Parameters
$object_phid
Return
wild

public function getObjectPHID()
Inherited

This method is not documented.
Return
wild

public function setIsPreview($is_preview)
Inherited

This method is not documented.
Parameters
$is_preview
Return
wild

public function getIsPreview()
Inherited

This method is not documented.
Return
wild

public function setShowEditActions($show_edit_actions)
Inherited

This method is not documented.
Parameters
$show_edit_actions
Return
wild

public function getShowEditActions()
Inherited

This method is not documented.
Return
wild

public function setMarkupEngine($engine)
Inherited

This method is not documented.
Parameters
PhabricatorMarkupEngine$engine
Return
wild

public function setTransactions($transactions)
Inherited

This method is not documented.
Parameters
array$transactions
Return
wild

public function getTransactions()
Inherited

This method is not documented.
Return
wild

public function setShouldTerminate($term)
Inherited

This method is not documented.
Parameters
$term
Return
wild

public function setPager($pager)
Inherited

This method is not documented.
Parameters
AphrontCursorPagerView$pager
Return
wild

public function getPager()
Inherited

This method is not documented.
Return
wild

public function setHideCommentOptions($hide_comment_options)
Inherited

This method is not documented.
Parameters
$hide_comment_options
Return
wild

public function getHideCommentOptions()
Inherited

This method is not documented.
Return
wild

public function setViewData($view_data)
Inherited

This method is not documented.
Parameters
array$view_data
Return
wild

public function getViewData()
Inherited

This method is not documented.
Return
wild

public function buildEvents($with_hiding)
Inherited

This method is not documented.
Parameters
$with_hiding
Return
wild

public function buildPHUITimelineView($with_hiding)
Inherited

This method is not documented.
Parameters
$with_hiding
Return
wild

public function isTimelineEmpty()
Inherited

This method is not documented.
Return
wild

protected function getOrBuildEngine()
Inherited

This method is not documented.
Return
wild

private function buildChangeDetailsLink($xaction)
Inherited

This method is not documented.
Parameters
PhabricatorApplicationTransaction$xaction
Return
wild

private function buildExtraInformationLink($xaction)
Inherited

This method is not documented.
Parameters
PhabricatorApplicationTransaction$xaction
Return
wild

protected function shouldGroupTransactions($u, $v)

This method is not documented.
Parameters
PhabricatorApplicationTransaction$u
PhabricatorApplicationTransaction$v
Return
wild

protected function renderTransactionContent($xaction)

This method is not documented.
Parameters
PhabricatorApplicationTransaction$xaction
Return
wild

private function filterHiddenTransactions($xactions)
Inherited

This method is not documented.
Parameters
array$xactions
Return
wild

private function groupRelatedTransactions($xactions)
Inherited

This method is not documented.
Parameters
array$xactions
Return
wild

private function groupDisplayTransactions($xactions)
Inherited

This method is not documented.
Parameters
array$xactions
Return
wild

private function renderEvent($xaction, $group)
Inherited

This method is not documented.
Parameters
PhabricatorApplicationTransaction$xaction
array$group
Return
wild

private function shouldSuppressTitle($xaction, $group)
Inherited

This method is not documented.
Parameters
PhabricatorApplicationTransaction$xaction
array$group
Return
wild

public function setMock($mock)

This method is not documented.
Parameters
$mock
Return
wild

public function getMock()

This method is not documented.
Return
wild

private function renderInlineContent($inline)

This method is not documented.
Parameters
PholioTransaction$inline
Return
wild