Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/phid/AlmanacInterfacePHIDType.php
<?php | <?php | ||||
final class AlmanacInterfacePHIDType extends PhabricatorPHIDType { | final class AlmanacInterfacePHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'AINT'; | const TYPECONST = 'AINT'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Almanac Interface'); | return pht('Almanac Interface'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new AlmanacInterface(); | return new AlmanacInterface(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorAlmanacApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new AlmanacInterfaceQuery()) | return id(new AlmanacInterfaceQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 28 Lines |