Differential D20185 Diff 48213 src/applications/differential/view/DifferentialChangesetDetailView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/view/DifferentialChangesetDetailView.php
<?php | <?php | ||||
final class DifferentialChangesetDetailView extends AphrontView { | final class DifferentialChangesetDetailView extends AphrontView { | ||||
private $changeset; | private $changeset; | ||||
private $buttons = array(); | private $buttons = array(); | ||||
private $editable; | private $editable; | ||||
private $symbolIndex; | private $symbolIndex; | ||||
private $id; | private $id; | ||||
private $vsChangesetID; | private $vsChangesetID; | ||||
private $renderURI; | private $renderURI; | ||||
private $whitespace; | |||||
private $renderingRef; | private $renderingRef; | ||||
private $autoload; | private $autoload; | ||||
private $loaded; | private $loaded; | ||||
private $renderer; | private $renderer; | ||||
public function setAutoload($autoload) { | public function setAutoload($autoload) { | ||||
$this->autoload = $autoload; | $this->autoload = $autoload; | ||||
return $this; | return $this; | ||||
Show All 16 Lines | public function setRenderingRef($rendering_ref) { | ||||
$this->renderingRef = $rendering_ref; | $this->renderingRef = $rendering_ref; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getRenderingRef() { | public function getRenderingRef() { | ||||
return $this->renderingRef; | return $this->renderingRef; | ||||
} | } | ||||
public function setWhitespace($whitespace) { | |||||
$this->whitespace = $whitespace; | |||||
return $this; | |||||
} | |||||
public function getWhitespace() { | |||||
return $this->whitespace; | |||||
} | |||||
public function setRenderURI($render_uri) { | public function setRenderURI($render_uri) { | ||||
$this->renderURI = $render_uri; | $this->renderURI = $render_uri; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getRenderURI() { | public function getRenderURI() { | ||||
return $this->renderURI; | return $this->renderURI; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | public function render() { | ||||
return javelin_tag( | return javelin_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'sigil' => 'differential-changeset', | 'sigil' => 'differential-changeset', | ||||
'meta' => array( | 'meta' => array( | ||||
'left' => $left_id, | 'left' => $left_id, | ||||
'right' => $right_id, | 'right' => $right_id, | ||||
'renderURI' => $this->getRenderURI(), | 'renderURI' => $this->getRenderURI(), | ||||
'whitespace' => $this->getWhitespace(), | |||||
'highlight' => null, | 'highlight' => null, | ||||
'renderer' => $this->getRenderer(), | 'renderer' => $this->getRenderer(), | ||||
'ref' => $this->getRenderingRef(), | 'ref' => $this->getRenderingRef(), | ||||
'autoload' => $this->getAutoload(), | 'autoload' => $this->getAutoload(), | ||||
'loaded' => $this->getLoaded(), | 'loaded' => $this->getLoaded(), | ||||
'undoTemplates' => hsprintf('%s', $renderer->renderUndoTemplates()), | 'undoTemplates' => hsprintf('%s', $renderer->renderUndoTemplates()), | ||||
'displayPath' => hsprintf('%s', $display_parts), | 'displayPath' => hsprintf('%s', $display_parts), | ||||
'path' => $display_filename, | 'path' => $display_filename, | ||||
Show All 32 Lines |