Differential D20179 Diff 48188 src/applications/harbormaster/storage/build/HarbormasterBuildUnitMessage.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/build/HarbormasterBuildUnitMessage.php
| <?php | <?php | ||||
| final class HarbormasterBuildUnitMessage | final class HarbormasterBuildUnitMessage | ||||
| extends HarbormasterDAO { | extends HarbormasterDAO | ||||
| implements PhabricatorPolicyInterface { | |||||
| protected $buildTargetPHID; | protected $buildTargetPHID; | ||||
| protected $engine; | protected $engine; | ||||
| protected $namespace; | protected $namespace; | ||||
| protected $name; | protected $name; | ||||
| protected $result; | protected $result; | ||||
| protected $duration; | protected $duration; | ||||
| protected $properties = array(); | protected $properties = array(); | ||||
| ▲ Show 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | $parts = array( | ||||
| $this->getNamespace(), | $this->getNamespace(), | ||||
| $this->getName(), | $this->getName(), | ||||
| $this->getID(), | $this->getID(), | ||||
| ); | ); | ||||
| return implode("\0", $parts); | return implode("\0", $parts); | ||||
| } | } | ||||
| /* -( PhabricatorPolicyInterface )----------------------------------------- */ | |||||
| public function getCapabilities() { | |||||
| return array( | |||||
| PhabricatorPolicyCapability::CAN_VIEW, | |||||
| ); | |||||
| } | |||||
| public function getPolicy($capability) { | |||||
| switch ($capability) { | |||||
| case PhabricatorPolicyCapability::CAN_VIEW: | |||||
| return PhabricatorPolicies::getMostOpenPolicy(); | |||||
| } | |||||
| } | |||||
| public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { | |||||
| return false; | |||||
| } | |||||
| } | } | ||||