Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phurl/phid/PhabricatorPhurlURLPHIDType.php
| <?php | <?php | ||||
| final class PhabricatorPhurlURLPHIDType extends PhabricatorPHIDType { | final class PhabricatorPhurlURLPHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'PHRL'; | const TYPECONST = 'PHRL'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('URL'); | return pht('URL'); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorPhurlApplication'; | |||||
| } | |||||
| public function newObject() { | public function newObject() { | ||||
| return new PhabricatorPhurlURL(); | return new PhabricatorPhurlURL(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorPhurlApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new PhabricatorPhurlURLQuery()) | return id(new PhabricatorPhurlURLQuery()) | ||||
| ->withPHIDs($phids); | ->withPHIDs($phids); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||