Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/phid/ManiphestTaskPHIDType.php
<?php | <?php | ||||
final class ManiphestTaskPHIDType extends PhabricatorPHIDType { | final class ManiphestTaskPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'TASK'; | const TYPECONST = 'TASK'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Maniphest Task'); | return pht('Maniphest Task'); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorManiphestApplication'; | |||||
} | |||||
public function newObject() { | public function newObject() { | ||||
return new ManiphestTask(); | return new ManiphestTask(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorManiphestApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new ManiphestTaskQuery()) | return id(new ManiphestTaskQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |