Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/view/DifferentialChangesetListView.php
| Show All 18 Lines | final class DifferentialChangesetListView extends AphrontView { | ||||
| private $symbolIndexes = array(); | private $symbolIndexes = array(); | ||||
| private $repository; | private $repository; | ||||
| private $branch; | private $branch; | ||||
| private $diff; | private $diff; | ||||
| private $vsMap = array(); | private $vsMap = array(); | ||||
| private $title; | private $title; | ||||
| private $parser; | private $parser; | ||||
| private $formationView; | |||||
| public function setParser(DifferentialChangesetParser $parser) { | public function setParser(DifferentialChangesetParser $parser) { | ||||
| $this->parser = $parser; | $this->parser = $parser; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getParser() { | public function getParser() { | ||||
| return $this->parser; | return $this->parser; | ||||
| ▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | public function setBackground($background) { | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function setHeader($header) { | public function setHeader($header) { | ||||
| $this->header = $header; | $this->header = $header; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function setFormationView(PHUIFormationView $formation_view) { | |||||
| $this->formationView = $formation_view; | |||||
| return $this; | |||||
| } | |||||
| public function getFormationView() { | |||||
| return $this->formationView; | |||||
| } | |||||
| public function render() { | public function render() { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $this->requireResource('differential-changeset-view-css'); | $this->requireResource('differential-changeset-view-css'); | ||||
| $changesets = $this->changesets; | $changesets = $this->changesets; | ||||
| $repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
| ▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | foreach ($changesets as $key => $changeset) { | ||||
| } | } | ||||
| $output[] = $detail->render(); | $output[] = $detail->render(); | ||||
| $ids[] = $detail->getID(); | $ids[] = $detail->getID(); | ||||
| } | } | ||||
| $this->requireResource('aphront-tooltip-css'); | $this->requireResource('aphront-tooltip-css'); | ||||
| $formation_id = null; | |||||
| $formation_view = $this->getFormationView(); | |||||
| if ($formation_view) { | |||||
| $formation_id = $formation_view->getID(); | |||||
| } | |||||
| $this->initBehavior( | $this->initBehavior( | ||||
| 'differential-populate', | 'differential-populate', | ||||
| array( | array( | ||||
| 'changesetViewIDs' => $ids, | 'changesetViewIDs' => $ids, | ||||
| 'formationViewID' => $formation_id, | |||||
| 'inlineURI' => $this->inlineURI, | 'inlineURI' => $this->inlineURI, | ||||
| 'inlineListURI' => $this->inlineListURI, | 'inlineListURI' => $this->inlineListURI, | ||||
| 'isStandalone' => $this->getIsStandalone(), | 'isStandalone' => $this->getIsStandalone(), | ||||
| 'pht' => array( | 'pht' => array( | ||||
| 'Open in Editor' => pht('Open in Editor'), | 'Open in Editor' => pht('Open in Editor'), | ||||
| 'Show All Context' => pht('Show All Context'), | 'Show All Context' => pht('Show All Context'), | ||||
| 'All Context Shown' => pht('All Context Shown'), | 'All Context Shown' => pht('All Context Shown'), | ||||
| "Can't Toggle Unloaded File" => pht("Can't Toggle Unloaded File"), | "Can't Toggle Unloaded File" => pht("Can't Toggle Unloaded File"), | ||||
| ▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines | |||||