Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/phid/PhabricatorConfigConfigPHIDType.php
<?php | <?php | ||||
final class PhabricatorConfigConfigPHIDType extends PhabricatorPHIDType { | final class PhabricatorConfigConfigPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'CONF'; | const TYPECONST = 'CONF'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Config'); | return pht('Config'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorConfigEntry(); | return new PhabricatorConfigEntry(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorConfigApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PhabricatorConfigEntryQuery()) | return id(new PhabricatorConfigEntryQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 16 Lines |