Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/phid/ReleephProductPHIDType.php
<?php | <?php | ||||
final class ReleephProductPHIDType extends PhabricatorPHIDType { | final class ReleephProductPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'REPR'; | const TYPECONST = 'REPR'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Releeph Product'); | return pht('Releeph Product'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new ReleephProject(); | return new ReleephProject(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorReleephApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new ReleephProductQuery()) | return id(new ReleephProductQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 14 Lines |