Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/phid/PhabricatorPastePHIDTypePaste.php
Show All 10 Lines | final class PhabricatorPastePHIDTypePaste extends PhabricatorPHIDType { | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Paste'); | return pht('Paste'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhabricatorPaste(); | return new PhabricatorPaste(); | ||||
} | } | ||||
public function loadObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PhabricatorPasteQuery()) | return id(new PhabricatorPasteQuery()) | ||||
->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) { | ||||
foreach ($handles as $phid => $handle) { | foreach ($handles as $phid => $handle) { | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |