Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/phid/PonderQuestionPHIDType.php
<?php | <?php | ||||
final class PonderQuestionPHIDType extends PhabricatorPHIDType { | final class PonderQuestionPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'QUES'; | const TYPECONST = 'QUES'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Ponder Question'); | return pht('Ponder Question'); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorPonderApplication'; | |||||
} | |||||
public function newObject() { | public function newObject() { | ||||
return new PonderQuestion(); | return new PonderQuestion(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorPonderApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PonderQuestionQuery()) | return id(new PonderQuestionQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |