Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/controller/PhabricatorController.php
Show First 20 Lines • Show All 420 Lines • ▼ Show 20 Lines | if ($response instanceof AphrontDialogResponse) { | ||||
'redirect' => $response->getURI(), | 'redirect' => $response->getURI(), | ||||
)); | )); | ||||
} | } | ||||
} | } | ||||
return $response; | return $response; | ||||
} | } | ||||
protected function getHandle($phid) { | |||||
if (empty($this->handles[$phid])) { | |||||
throw new Exception( | |||||
"Attempting to access handle which wasn't loaded: {$phid}"); | |||||
} | |||||
return $this->handles[$phid]; | |||||
} | |||||
protected function loadHandles(array $phids) { | |||||
$phids = array_filter($phids); | |||||
$this->handles = $this->loadViewerHandles($phids); | |||||
return $this; | |||||
} | |||||
protected function loadViewerHandles(array $phids) { | protected function loadViewerHandles(array $phids) { | ||||
return id(new PhabricatorHandleQuery()) | return id(new PhabricatorHandleQuery()) | ||||
->setViewer($this->getRequest()->getUser()) | ->setViewer($this->getRequest()->getUser()) | ||||
->withPHIDs($phids) | ->withPHIDs($phids) | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
public function buildApplicationMenu() { | public function buildApplicationMenu() { | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |