Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phlux/phid/PhluxVariablePHIDType.php
<?php | <?php | ||||
final class PhluxVariablePHIDType extends PhabricatorPHIDType { | final class PhluxVariablePHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'PVAR'; | const TYPECONST = 'PVAR'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Variable'); | return pht('Variable'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhluxVariable(); | return new PhluxVariable(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorPhluxApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PhluxVariableQuery()) | return id(new PhluxVariableQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 17 Lines |