Page MenuHomeClusterLabs Projects
Diviner Tech Docs DifferentialChangesetHTMLRenderer

abstract class DifferentialChangesetHTMLRenderer
Phorge Technical Documentation (Differential)

This class is not documented.

Methods

abstract public function getRendererKey()
Inherited

This method is not documented.
Return
wild

public function setShowEditAndReplyLinks($bool)
Inherited

This method is not documented.
Parameters
$bool
Return
wild

public function getShowEditAndReplyLinks()
Inherited

This method is not documented.
Return
wild

public function setHighlightingDisabled($highlighting_disabled)
Inherited

This method is not documented.
Parameters
$highlighting_disabled
Return
wild

public function getHighlightingDisabled()
Inherited

This method is not documented.
Return
wild

public function setOriginalCharacterEncoding($original_character_encoding)
Inherited

This method is not documented.
Parameters
$original_character_encoding
Return
wild

public function getOriginalCharacterEncoding()
Inherited

This method is not documented.
Return
wild

public function setIsUndershield($is_undershield)
Inherited

This method is not documented.
Parameters
$is_undershield
Return
wild

public function getIsUndershield()
Inherited

This method is not documented.
Return
wild

public function setMask($mask)
Inherited

This method is not documented.
Parameters
$mask
Return
wild

protected function getMask()
Inherited

This method is not documented.
Return
wild

public function setGaps($gaps)
Inherited

This method is not documented.
Parameters
$gaps
Return
wild

protected function getGaps()
Inherited

This method is not documented.
Return
wild

public function setDepthOnlyLines($lines)
Inherited

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

public function getDepthOnlyLines()
Inherited

This method is not documented.
Return
wild

public function attachOldFile($old)
Inherited

This method is not documented.
Parameters
PhabricatorFile$old
Return
wild

public function getOldFile()
Inherited

This method is not documented.
Return
wild

public function hasOldFile()
Inherited

This method is not documented.
Return
wild

public function attachNewFile($new)
Inherited

This method is not documented.
Parameters
PhabricatorFile$new
Return
wild

public function getNewFile()
Inherited

This method is not documented.
Return
wild

public function hasNewFile()
Inherited

This method is not documented.
Return
wild

public function setOriginalNew($original_new)
Inherited

This method is not documented.
Parameters
$original_new
Return
wild

protected function getOriginalNew()
Inherited

This method is not documented.
Return
wild

public function setOriginalOld($original_old)
Inherited

This method is not documented.
Parameters
$original_old
Return
wild

protected function getOriginalOld()
Inherited

This method is not documented.
Return
wild

public function setNewRender($new_render)
Inherited

This method is not documented.
Parameters
$new_render
Return
wild

protected function getNewRender()
Inherited

This method is not documented.
Return
wild

public function setOldRender($old_render)
Inherited

This method is not documented.
Parameters
$old_render
Return
wild

protected function getOldRender()
Inherited

This method is not documented.
Return
wild

public function setMarkupEngine($markup_engine)
Inherited

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

public function getMarkupEngine()
Inherited

This method is not documented.
Return
wild

public function setHandles($handles)
Inherited

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

protected function getHandles()
Inherited

This method is not documented.
Return
wild

public function setCodeCoverage($code_coverage)
Inherited

This method is not documented.
Parameters
$code_coverage
Return
wild

protected function getCodeCoverage()
Inherited

This method is not documented.
Return
wild

public function setHighlightNew($highlight_new)
Inherited

This method is not documented.
Parameters
$highlight_new
Return
wild

protected function getHighlightNew()
Inherited

This method is not documented.
Return
wild

public function setHighlightOld($highlight_old)
Inherited

This method is not documented.
Parameters
$highlight_old
Return
wild

protected function getHighlightOld()
Inherited

This method is not documented.
Return
wild

public function setNewAttachesToNewFile($attaches)
Inherited

This method is not documented.
Parameters
$attaches
Return
wild

protected function getNewAttachesToNewFile()
Inherited

This method is not documented.
Return
wild

public function setOldAttachesToNewFile($attaches)
Inherited

This method is not documented.
Parameters
$attaches
Return
wild

protected function getOldAttachesToNewFile()
Inherited

This method is not documented.
Return
wild

public function setNewChangesetID($new_changeset_id)
Inherited

This method is not documented.
Parameters
$new_changeset_id
Return
wild

protected function getNewChangesetID()
Inherited

This method is not documented.
Return
wild

public function setOldChangesetID($old_changeset_id)
Inherited

This method is not documented.
Parameters
$old_changeset_id
Return
wild

protected function getOldChangesetID()
Inherited

This method is not documented.
Return
wild

public function setDocumentEngine($engine)
Inherited

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

public function getDocumentEngine()
Inherited

This method is not documented.
Return
wild

public function setDocumentEngineBlocks($blocks)
Inherited

This method is not documented.
Parameters
PhabricatorDocumentEngineBlocks$blocks
Return
wild

public function getDocumentEngineBlocks()
Inherited

This method is not documented.
Return
wild

public function setNewComments($new_comments)
Inherited

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

protected function getNewComments()
Inherited

This method is not documented.
Return
wild

public function setOldComments($old_comments)
Inherited

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

protected function getOldComments()
Inherited

This method is not documented.
Return
wild

public function setNewLines($new_lines)
Inherited

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

protected function getNewLines()
Inherited

This method is not documented.
Return
wild

public function setOldLines($old_lines)
Inherited

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

protected function getOldLines()
Inherited

This method is not documented.
Return
wild

public function setHunkStartLines($hunk_start_lines)
Inherited

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

protected function getHunkStartLines()
Inherited

This method is not documented.
Return
wild

public function setUser($user)
Inherited

This method is not documented.
Parameters
PhabricatorUser$user
Return
wild

protected function getUser()
Inherited

This method is not documented.
Return
wild

public function setChangeset($changeset)
Inherited

This method is not documented.
Parameters
DifferentialChangeset$changeset
Return
wild

protected function getChangeset()
Inherited

This method is not documented.
Return
wild

public function setRenderingReference($rendering_reference)
Inherited

This method is not documented.
Parameters
$rendering_reference
Return
wild

protected function getRenderingReference()
Inherited

This method is not documented.
Return
wild

public function setRenderPropertyChangeHeader($should_render)
Inherited

This method is not documented.
Parameters
$should_render
Return
wild

private function shouldRenderPropertyChangeHeader()
Inherited

This method is not documented.
Return
wild

public function setIsTopLevel($is)
Inherited

This method is not documented.
Parameters
$is
Return
wild

private function getIsTopLevel()
Inherited

This method is not documented.
Return
wild

public function setCanMarkDone($can_mark_done)
Inherited

This method is not documented.
Parameters
$can_mark_done
Return
wild

public function getCanMarkDone()
Inherited

This method is not documented.
Return
wild

public function setObjectOwnerPHID($phid)
Inherited

This method is not documented.
Parameters
$phid
Return
wild

public function getObjectOwnerPHID()
Inherited

This method is not documented.
Return
wild

final public function renderChangesetTable($content)
Inherited

This method is not documented.
Parameters
$content
Return
wild

abstract public function isOneUpRenderer()
Inherited

This method is not documented.
Return
wild

abstract public function renderTextChange($range_start, $range_len, $rows)
Inherited

This method is not documented.
Parameters
$range_start
$range_len
$rows
Return
wild

public function renderDocumentEngineBlocks($blocks, $old_changeset_key, $new_changeset_key)
Inherited

This method is not documented.
Parameters
PhabricatorDocumentEngineBlocks$blocks
$old_changeset_key
$new_changeset_key
Return
wild

protected function renderChangeTypeHeader($force)

This method is not documented.
Parameters
$force
Return
wild

protected function renderUndershieldHeader()

This method is not documented.
Return
wild

protected function didRenderChangesetTableContents($contents)
Inherited

This method is not documented.
Parameters
$contents
Return
wild

public function renderShield($message, $force)

DifferentialChangesetRenderer

Render a "shield" over the diff, with a message like "This file is generated and does not need to be reviewed." or "This file was completely deleted." This UI element hides unimportant text so the reviewer doesn't need to scroll past it.

The shield includes a link to view the underlying content. This link may force certain rendering modes when the link is clicked:

  • "default": Render the diff normally, as though it was not shielded. This is the default and appropriate if the underlying diff is a normal change, but was hidden for reasons of not being important (e.g., generated code).
  • "text": Force the text to be shown. This is probably only relevant when a file is not changed.
  • "none": Don't show the link (e.g., text not available).
DifferentialChangesetHTMLRenderer
This method is not documented.
Parameters
string$messageMessage explaining why the diff is hidden.
string|null$forceForce mode, see above.
Return
stringShield markup.

protected function renderPropertyChangeHeader()

This method is not documented.
Return
wild

protected function buildPrimitives($range_start, $range_len)
Inherited

This method is not documented.
Parameters
$range_start
$range_len
Return
wild

private function processPrimitivesForOneUp($primitives)
Inherited

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

protected function getChangesetProperties($changeset)
Inherited

This method is not documented.
Parameters
$changeset
Return
wild

public function renderUndoTemplates()
Inherited

This method is not documented.
Return
wild

final protected function getScopeEngine()
Inherited

This method is not documented.
Return
wild

private function getNewLineTextMap()
Inherited

This method is not documented.
Return
wild

public static function getHTMLRendererByKey($key)

This method is not documented.
Parameters
$key
Return
wild

abstract protected function getRendererTableClass()

This method is not documented.
Return
wild

abstract public function getRowScaffoldForInline($view)

This method is not documented.
Parameters
PHUIDiffInlineCommentView$view
Return
wild

private function formatHeaderMessages($messages)

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

abstract protected function renderColgroup()

This method is not documented.
Return
wild

protected function wrapChangeInTable($content)

This method is not documented.
Parameters
$content
Return
wild

protected function getTableSigils()

This method is not documented.
Return
wild

protected function buildInlineComment($comment, $on_right)

This method is not documented.
Parameters
PhabricatorInlineComment$comment
$on_right
Return
wild

protected function renderShowContextLinks($top, $len, $changeset_length, $is_blocks)

Build links which users can click to show more context in a changeset.

Parameters
int$topBeginning of the line range to build links for.
int$lenLength of the line range to build links for.
int$changeset_lengthTotal number of lines in the changeset.
$is_blocks
Return
markupRendered links.

private function renderShowContextLink($is_all, $range, $text)

Build a link that shows more context in a changeset.

See renderShowContextLinks().

Parameters
bool$is_allDoes this link show all context when clicked?
string$rangeRange specification for lines to show.
string$textText of the link.
Return
markupRendered link.

protected function getLineIDPrefixes()

Build the prefixes for line IDs used to track inline comments.

Return
pair<wild, wild>Left and right prefixes.