Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/phid/DifferentialPHIDTypeRevision.php
Show All 10 Lines | final class DifferentialPHIDTypeRevision extends PhabricatorPHIDType { | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Differential Revision'); | return pht('Differential Revision'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new DifferentialRevision(); | return new DifferentialRevision(); | ||||
} | } | ||||
public function loadObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new DifferentialRevisionQuery()) | return id(new DifferentialRevisionQuery()) | ||||
->setViewer($query->getViewer()) | ->withPHIDs($phids); | ||||
->setParentQuery($query) | |||||
->withPHIDs($phids) | |||||
->execute(); | |||||
} | } | ||||
public function loadHandles( | public function loadHandles( | ||||
PhabricatorHandleQuery $query, | PhabricatorHandleQuery $query, | ||||
array $handles, | array $handles, | ||||
array $objects) { | array $objects) { | ||||
static $closed_statuses = array( | static $closed_statuses = array( | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |