Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/storage/PhabricatorDashboardInstall.php
| Show All 37 Lines | $dashboard_install = id(new PhabricatorDashboardInstall()) | ||||
| ->loadOneWhere( | ->loadOneWhere( | ||||
| 'objectPHID = %s AND applicationClass = %s', | 'objectPHID = %s AND applicationClass = %s', | ||||
| $object_phid, | $object_phid, | ||||
| $application_class); | $application_class); | ||||
| if ($dashboard_install) { | if ($dashboard_install) { | ||||
| $dashboard = id(new PhabricatorDashboardQuery()) | $dashboard = id(new PhabricatorDashboardQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withPHIDs(array($dashboard_install->getDashboardPHID())) | ->withPHIDs(array($dashboard_install->getDashboardPHID())) | ||||
| ->needPanels(true) | |||||
| ->executeOne(); | ->executeOne(); | ||||
| } | } | ||||
| return $dashboard; | return $dashboard; | ||||
| } | } | ||||
| } | } | ||||