3 abstract class PhabricatorSearchBaseController
extends PhabricatorController
{
5 protected function loadRelationshipObject() {
6 $request = $this->getRequest();
7 $viewer = $this->getViewer();
9 $phid = $request->getURIData('sourcePHID');
11 return id(new PhabricatorObjectQuery())
13 ->withPHIDs(array($phid))
14 ->requireCapabilities(
16 PhabricatorPolicyCapability
::CAN_VIEW
,
17 PhabricatorPolicyCapability
::CAN_EDIT
,
22 protected function loadRelationship($object) {
23 $request = $this->getRequest();
24 $viewer = $this->getViewer();
26 $relationship_key = $request->getURIData('relationshipKey');
28 $list = PhabricatorObjectRelationshipList
::newForObject(
32 return $list->getRelationship($relationship_key);