Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fund/phid/FundBackerPHIDType.php
<?php | <?php | ||||
final class FundBackerPHIDType extends PhabricatorPHIDType { | final class FundBackerPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'FBAK'; | const TYPECONST = 'FBAK'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Variable'); | return pht('Variable'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new FundInitiative(); | return new FundInitiative(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorFundApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new FundInitiativeQuery()) | return id(new FundInitiativeQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 19 Lines |