Changeset View
Changeset View
Standalone View
Standalone View
src/ref/paste/ArcanistPasteRef.php
| <?php | <?php | ||||
| final class ArcanistPasteRef | final class ArcanistPasteRef | ||||
| extends ArcanistRef | extends ArcanistRef { | ||||
| implements | |||||
| ArcanistDisplayRefInterface { | |||||
| private $parameters; | private $parameters; | ||||
| public function getRefDisplayName() { | public function getRefDisplayName() { | ||||
| return pht('Paste "%s"', $this->getMonogram()); | return pht('Paste "%s"', $this->getMonogram()); | ||||
| } | } | ||||
| public static function newFromConduit(array $parameters) { | public static function newFromConduit(array $parameters) { | ||||
| Show All 27 Lines | final class ArcanistPasteRef | ||||
| public function getContent() { | public function getContent() { | ||||
| return idxv($this->parameters, array('attachments', 'content', 'content')); | return idxv($this->parameters, array('attachments', 'content', 'content')); | ||||
| } | } | ||||
| public function getMonogram() { | public function getMonogram() { | ||||
| return 'P'.$this->getID(); | return 'P'.$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->getTitle(); | |||||
| } | } | ||||
| } | } | ||||