Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/phid/PhrictionDocumentPHIDType.php
| <?php | <?php | ||||
| final class PhrictionDocumentPHIDType extends PhabricatorPHIDType { | final class PhrictionDocumentPHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'WIKI'; | const TYPECONST = 'WIKI'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('Phriction Wiki Document'); | return pht('Phriction Wiki Document'); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorPhrictionApplication'; | |||||
| } | |||||
| public function newObject() { | public function newObject() { | ||||
| return new PhrictionDocument(); | return new PhrictionDocument(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorPhrictionApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new PhrictionDocumentQuery()) | return id(new PhrictionDocumentQuery()) | ||||
| ->withPHIDs($phids) | ->withPHIDs($phids) | ||||
| ->needContent(true); | ->needContent(true); | ||||
| } | } | ||||
| Show All 24 Lines | |||||