Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialDiff.php
Show First 20 Lines • Show All 423 Lines • ▼ Show 20 Lines | public function describeAutomaticCapability($capability) { | ||||
return pht('The author of a diff can see it.'); | return pht('The author of a diff can see it.'); | ||||
} | } | ||||
/* -( HarbormasterBuildableInterface )------------------------------------- */ | /* -( HarbormasterBuildableInterface )------------------------------------- */ | ||||
public function getHarbormasterBuildableDisplayPHID() { | |||||
$container_phid = $this->getHarbormasterContainerPHID(); | |||||
if ($container_phid) { | |||||
return $container_phid; | |||||
} | |||||
return $this->getHarbormasterBuildablePHID(); | |||||
} | |||||
public function getHarbormasterBuildablePHID() { | public function getHarbormasterBuildablePHID() { | ||||
return $this->getPHID(); | return $this->getPHID(); | ||||
} | } | ||||
public function getHarbormasterContainerPHID() { | public function getHarbormasterContainerPHID() { | ||||
if ($this->getRevisionID()) { | if ($this->getRevisionID()) { | ||||
$revision = id(new DifferentialRevision())->load($this->getRevisionID()); | $revision = id(new DifferentialRevision())->load($this->getRevisionID()); | ||||
if ($revision) { | if ($revision) { | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |