Differential D14068 Diff 34734 src/applications/dashboard/phid/PhabricatorDashboardDashboardPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/phid/PhabricatorDashboardDashboardPHIDType.php
| <?php | <?php | ||||
| final class PhabricatorDashboardDashboardPHIDType extends PhabricatorPHIDType { | final class PhabricatorDashboardDashboardPHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'DSHB'; | const TYPECONST = 'DSHB'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('Dashboard'); | return pht('Dashboard'); | ||||
| } | } | ||||
| public function newObject() { | public function newObject() { | ||||
| return new PhabricatorDashboard(); | return new PhabricatorDashboard(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorDashboardApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new PhabricatorDashboardQuery()) | return id(new PhabricatorDashboardQuery()) | ||||
| ->withPHIDs($phids); | ->withPHIDs($phids); | ||||
| } | } | ||||
| Show All 16 Lines | |||||