Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/phid/PhabricatorPolicyPHIDTypePolicy.php
<?php | <?php | ||||
final class PhabricatorPolicyPHIDTypePolicy extends PhabricatorPHIDType { | final class PhabricatorPolicyPHIDTypePolicy extends PhabricatorPHIDType { | ||||
const TYPECONST = 'PLCY'; | const TYPECONST = 'PLCY'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Policy'); | return pht('Policy'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorPolicy(); | return new PhabricatorPolicy(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorPolicyApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PhabricatorPolicyQuery()) | return id(new PhabricatorPolicyQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 14 Lines |