Page MenuHomePhorge
Diviner Tech Docs DiffusionCommitGraphView

final class DiffusionCommitGraphView
Phorge Technical Documentation (Diffusion)

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 __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

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

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

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

final public function setDiffusionRequest($request)
Inherited

This method is not documented.
Parameters
DiffusionRequest$request
Return
wild

final public function getDiffusionRequest()
Inherited

This method is not documented.
Return
wild

final public function linkHistory($path)
Inherited

This method is not documented.
Parameters
$path
Return
wild

final public function linkBranchHistory($branch)
Inherited

This method is not documented.
Parameters
$branch
Return
wild

final public function linkTagHistory($tag)
Inherited

This method is not documented.
Parameters
$tag
Return
wild

private function renderHistoryLink($href)
Inherited

This method is not documented.
Parameters
$href
Return
wild

final public function linkBrowse($path, $details, $button)
Inherited

This method is not documented.
Parameters
$path
array$details
$button
Return
wild

final public static function linkCommit($repository, $commit, $summary)
Inherited

This method is not documented.
Parameters
PhabricatorRepository$repository
$commit
$summary
Return
wild

final public static function linkDetail($repository, $commit, $detail)
Inherited

This method is not documented.
Parameters
PhabricatorRepository$repository
$commit
$detail
Return
wild

final public static function renderName($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

final protected function renderBuildable($buildable, $type)
Inherited

This method is not documented.
Parameters
HarbormasterBuildable$buildable
$type
Return
wild

final protected function loadBuildables($commits)
Inherited

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

public function setHistory($history)

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

public function getHistory()

This method is not documented.
Return
wild

public function setCommits($commits)

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

public function getCommits()

This method is not documented.
Return
wild

public function setShowAuditors($show_auditors)

This method is not documented.
Parameters
$show_auditors
Return
wild

public function getShowAuditors()

This method is not documented.
Return
wild

public function setParents($parents)

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

public function getParents()

This method is not documented.
Return
wild

public function setIsHead($is_head)

This method is not documented.
Parameters
$is_head
Return
wild

public function getIsHead()

This method is not documented.
Return
wild

public function setIsTail($is_tail)

This method is not documented.
Parameters
$is_tail
Return
wild

public function getIsTail()

This method is not documented.
Return
wild

public function setFilterParents($filter_parents)

This method is not documented.
Parameters
$filter_parents
Return
wild

public function getFilterParents()

This method is not documented.
Return
wild

private function getRepository()

This method is not documented.
Return
wild

public function newObjectItemListView()

This method is not documented.
Return
wild

private function newObjectItemViews()

This method is not documented.
Return
wild

private function newObjectItemRows()

This method is not documented.
Return
wild

private function newGraphView()

This method is not documented.
Return
wild

private function shouldShowBuilds()

This method is not documented.
Return
wild

private function shouldShowRevisions()

This method is not documented.
Return
wild

private function shouldShowAuditors()

This method is not documented.
Return
wild

private function newHistoryItems()

This method is not documented.
Return
wild

private function getCommitDescription($commit)

This method is not documented.
Parameters
$commit
Return
wild

private function getCommitURI($hash)

This method is not documented.
Parameters
$hash
Return
wild

private function getCommitObjectName($hash)

This method is not documented.
Parameters
$hash
Return
wild

private function getCommitIsDisabled($commit)

This method is not documented.
Parameters
$commit
Return
wild

private function getCommitAuthorView($commit)

This method is not documented.
Parameters
$commit
Return
wild

private function getCommit($hash)

This method is not documented.
Parameters
$hash
Return
wild

private function getCommitMap()

This method is not documented.
Return
wild

private function addBrowseAction($item, $hash)

This method is not documented.
Parameters
PHUIObjectItemView$item
$hash
Return
wild

private function addBuildAction($item, $hash)

This method is not documented.
Parameters
PHUIObjectItemView$item
$hash
Return
wild

private function addAuditAction($item_view, $hash)

This method is not documented.
Parameters
PHUIObjectItemView$item_view
$hash
Return
wild

private function getBuildable($commit)

This method is not documented.
Parameters
PhabricatorRepositoryCommit$commit
Return
wild

private function getBuildableMap()

This method is not documented.
Return
wild

private function getRevisions($commit)

This method is not documented.
Parameters
PhabricatorRepositoryCommit$commit
Return
wild

private function getRevisionMap()

This method is not documented.
Return
wild

private function newRevisionMap()

This method is not documented.
Return
wild

private function newCommitList()

This method is not documented.
Return
wild

private function newAuditorList($commit, $handles)

This method is not documented.
Parameters
PhabricatorRepositoryCommit$commit
$handles
Return
wild