Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/phid/HarbormasterBuildablePHIDType.php
| <?php | <?php | ||||
| final class HarbormasterBuildablePHIDType extends PhabricatorPHIDType { | final class HarbormasterBuildablePHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'HMBB'; | const TYPECONST = 'HMBB'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('Buildable'); | return pht('Buildable'); | ||||
| } | } | ||||
| public function newObject() { | public function newObject() { | ||||
| return new HarbormasterBuildable(); | return new HarbormasterBuildable(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorHarbormasterApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new HarbormasterBuildableQuery()) | return id(new HarbormasterBuildableQuery()) | ||||
| ->withPHIDs($phids) | ->withPHIDs($phids) | ||||
| ->needBuildableHandles(true); | ->needBuildableHandles(true); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||