Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/controller/PhabricatorController.php
| Show First 20 Lines • Show All 477 Lines • ▼ Show 20 Lines | public function newCurtainView($object = null) { | ||||
| $action_list = id(new PhabricatorActionListView()) | $action_list = id(new PhabricatorActionListView()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->setID($action_id); | ->setID($action_id); | ||||
| // NOTE: Applications (objects of class PhabricatorApplication) can't | // NOTE: Applications (objects of class PhabricatorApplication) can't | ||||
| // currently be set here, although they don't need any of the extensions | // currently be set here, although they don't need any of the extensions | ||||
| // anyway. This should probably work differently than it does, though. | // anyway. This should probably work differently than it does, though. | ||||
| if ($object) { | |||||
| if ($object instanceof PhabricatorLiskDAO) { | if ($object instanceof PhabricatorLiskDAO) { | ||||
| $action_list->setObject($object); | $action_list->setObject($object); | ||||
| } | } | ||||
| } | |||||
| $curtain = id(new PHUICurtainView()) | $curtain = id(new PHUICurtainView()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->setActionList($action_list); | ->setActionList($action_list); | ||||
| if ($object) { | if ($object) { | ||||
| $panels = PHUICurtainExtension::buildExtensionPanels($viewer, $object); | $panels = PHUICurtainExtension::buildExtensionPanels($viewer, $object); | ||||
| foreach ($panels as $panel) { | foreach ($panels as $panel) { | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||