Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialDiff.php
Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | public function attachBuildable(HarbormasterBuildable $buildable = null) { | ||||
$this->buildable = $buildable; | $this->buildable = $buildable; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getBuildable() { | public function getBuildable() { | ||||
return $this->assertAttached($this->buildable); | return $this->assertAttached($this->buildable); | ||||
} | } | ||||
public function getBuildTargetPHIDs() { | |||||
$buildable = $this->getBuildable(); | |||||
if (!$buildable) { | |||||
return array(); | |||||
} | |||||
$target_phids = array(); | |||||
foreach ($buildable->getBuilds() as $build) { | |||||
foreach ($build->getBuildTargets() as $target) { | |||||
$target_phids[] = $target->getPHID(); | |||||
} | |||||
} | |||||
return $target_phids; | |||||
} | |||||
/* -( PhabricatorPolicyInterface )----------------------------------------- */ | /* -( PhabricatorPolicyInterface )----------------------------------------- */ | ||||
public function getCapabilities() { | public function getCapabilities() { | ||||
return array( | return array( | ||||
PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |