Page MenuHomeClusterLabs Projects
Diviner Tech Docs PhabricatorApplicationTransactionCommentView

final class PhabricatorApplicationTransactionCommentView
Phorge Technical Documentation (Transactions)

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()

This method is not documented.
Return
wild

public function producePhutilSafeHTML()
Inherited

This method is not documented.
Return
wild

public function setObjectPHID($object_phid)

This method is not documented.
Parameters
$object_phid
Return
wild

public function getObjectPHID()

This method is not documented.
Return
wild

public function setShowPreview($show_preview)

This method is not documented.
Parameters
$show_preview
Return
wild

public function getShowPreview()

This method is not documented.
Return
wild

public function setRequestURI($request_uri)

This method is not documented.
Parameters
PhutilURI$request_uri
Return
wild

public function getRequestURI()

This method is not documented.
Return
wild

public function setCurrentVersion($current_version)

This method is not documented.
Parameters
$current_version
Return
wild

public function getCurrentVersion()

This method is not documented.
Return
wild

public function setVersionedDraft($versioned_draft)

This method is not documented.
Parameters
PhabricatorVersionedDraft$versioned_draft
Return
wild

public function getVersionedDraft()

This method is not documented.
Return
wild

public function setDraft($draft)

This method is not documented.
Parameters
PhabricatorDraft$draft
Return
wild

public function getDraft()

This method is not documented.
Return
wild

public function setSubmitButtonName($submit_button_name)

This method is not documented.
Parameters
$submit_button_name
Return
wild

public function getSubmitButtonName()

This method is not documented.
Return
wild

public function setAction($action)

This method is not documented.
Parameters
$action
Return
wild

public function getAction()

This method is not documented.
Return
wild

public function setHeaderText($text)

This method is not documented.
Parameters
$text
Return
wild

public function setFullWidth($fw)

This method is not documented.
Parameters
$fw
Return
wild

public function setInfoView($info_view)

This method is not documented.
Parameters
PHUIInfoView$info_view
Return
wild

public function getInfoView()

This method is not documented.
Return
wild

public function setCommentActions($comment_actions)

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

public function getCommentActions()

This method is not documented.
Return
wild

public function setCommentActionGroups($groups)

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

public function getCommentActionGroups()

This method is not documented.
Return
wild

public function setNoPermission($no_permission)

This method is not documented.
Parameters
$no_permission
Return
wild

public function getNoPermission()

This method is not documented.
Return
wild

public function setEditEngineLock($lock)

This method is not documented.
Parameters
PhabricatorEditEngineLock$lock
Return
wild

public function getEditEngineLock()

This method is not documented.
Return
wild

public function setRequiresMFA($requires_mfa)

This method is not documented.
Parameters
$requires_mfa
Return
wild

public function getRequiresMFA()

This method is not documented.
Return
wild

public function setTransactionTimeline($timeline)

This method is not documented.
Parameters
PhabricatorApplicationTransactionView$timeline
Return
wild

private function renderCommentPanel()

This method is not documented.
Return
wild

private function renderPreviewPanel()

This method is not documented.
Return
wild

private function getPreviewPanelID()

This method is not documented.
Return
wild

private function getPreviewTimelineID()

This method is not documented.
Return
wild

public function setFormID($id)

This method is not documented.
Parameters
$id
Return
wild

private function getFormID()

This method is not documented.
Return
wild

private function getStatusID()

This method is not documented.
Return
wild

private function getCommentID()

This method is not documented.
Return
wild

private function newCommentActionOptions($action_map)

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

private function renderBadgeView()

This method is not documented.
Return
wild