Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/phid/PhabricatorPhamePostPHIDType.php
| <?php | <?php | ||||
| final class PhabricatorPhamePostPHIDType extends PhabricatorPHIDType { | final class PhabricatorPhamePostPHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'POST'; | const TYPECONST = 'POST'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('Phame Post'); | return pht('Phame Post'); | ||||
| } | } | ||||
| public function newObject() { | public function newObject() { | ||||
| return new PhamePost(); | return new PhamePost(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorPhameApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new PhamePostQuery()) | return id(new PhamePostQuery()) | ||||
| ->withPHIDs($phids); | ->withPHIDs($phids); | ||||
| } | } | ||||
| Show All 14 Lines | |||||