Changeset View
Changeset View
Standalone View
Standalone View
src/ref/buildable/ArcanistBuildableRef.php
<?php | <?php | ||||
final class ArcanistBuildableRef | final class ArcanistBuildableRef | ||||
extends ArcanistRef | extends ArcanistRef { | ||||
implements | |||||
ArcanistDisplayRefInterface { | |||||
const HARDPOINT_BUILDREFS = 'ref.buildable.buildRefs'; | const HARDPOINT_BUILDREFS = 'ref.buildable.buildRefs'; | ||||
private $parameters; | private $parameters; | ||||
protected function newHardpoints() { | protected function newHardpoints() { | ||||
$object_list = new ArcanistObjectListHardpoint(); | $object_list = new ArcanistObjectListHardpoint(); | ||||
return array( | return array( | ||||
Show All 24 Lines | final class ArcanistBuildableRef | ||||
public function getObjectPHID() { | public function getObjectPHID() { | ||||
return idxv($this->parameters, array('fields', 'objectPHID')); | return idxv($this->parameters, array('fields', 'objectPHID')); | ||||
} | } | ||||
public function getMonogram() { | public function getMonogram() { | ||||
return 'B'.$this->getID(); | return 'B'.$this->getID(); | ||||
} | } | ||||
public function getDisplayRefObjectName() { | protected function buildRefView(ArcanistRefView $view) { | ||||
return $this->getMonogram(); | $view | ||||
} | ->setObjectName($this->getMonogram()) | ||||
->setTitle($this->getRefDisplayName()); | |||||
public function getDisplayRefTitle() { | |||||
return pht('Buildable %d', $this->getID()); | |||||
} | } | ||||
public function getBuildRefs() { | public function getBuildRefs() { | ||||
return $this->getHardpoint(self::HARDPOINT_BUILDREFS); | return $this->getHardpoint(self::HARDPOINT_BUILDREFS); | ||||
} | } | ||||
public function getURI() { | public function getURI() { | ||||
$uri = idxv($this->parameters, array('fields', 'uri')); | $uri = idxv($this->parameters, array('fields', 'uri')); | ||||
Show All 9 Lines |