Changeset View
Changeset View
Standalone View
Standalone View
src/ref/file/ArcanistFileRef.php
| <?php | <?php | ||||
| final class ArcanistFileRef | final class ArcanistFileRef | ||||
| extends ArcanistRef | extends ArcanistRef { | ||||
| implements | |||||
| ArcanistDisplayRefInterface { | |||||
| private $parameters; | private $parameters; | ||||
| public function getRefDisplayName() { | public function getRefDisplayName() { | ||||
| return pht('File "%s"', $this->getMonogram()); | return pht('File "%s"', $this->getMonogram()); | ||||
| } | } | ||||
| public static function newFromConduit(array $parameters) { | public static function newFromConduit(array $parameters) { | ||||
| Show All 31 Lines | public function getURI() { | ||||
| return $uri; | return $uri; | ||||
| } | } | ||||
| public function getMonogram() { | public function getMonogram() { | ||||
| return 'F'.$this->getID(); | return 'F'.$this->getID(); | ||||
| } | } | ||||
| public function getDisplayRefObjectName() { | protected function buildRefView(ArcanistRefView $view) { | ||||
| return $this->getMonogram(); | $view | ||||
| } | ->setObjectName($this->getMonogram()) | ||||
| ->setTitle($this->getName()); | |||||
| public function getDisplayRefTitle() { | |||||
| return $this->getName(); | |||||
| } | } | ||||
| } | } | ||||