Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106125213
PhabricatorDashboardInstall.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Mar 22, 19:01
Size
945 B
Mime Type
text/x-php
Expires
Mon, Mar 24, 19:01 (2 d)
Engine
blob
Format
Raw Data
Handle
25105185
Attached To
rPH Phabricator
PhabricatorDashboardInstall.php
View Options
<?php
/**
* An install of a dashboard. Examples might be
* - the home page for a user
* - the profile page for a user
* - the profile page for a project
*/
final
class
PhabricatorDashboardInstall
extends
PhabricatorDashboardDAO
{
protected
$installerPHID
;
protected
$objectPHID
;
protected
$applicationClass
;
protected
$dashboardPHID
;
public
static
function
getDashboard
(
PhabricatorUser
$viewer
,
$object_phid
,
$application_class
)
{
$dashboard
=
null
;
$dashboard_install
=
id
(
new
PhabricatorDashboardInstall
())
->
loadOneWhere
(
'objectPHID = %s AND applicationClass = %s'
,
$object_phid
,
$application_class
);
if
(
$dashboard_install
)
{
$dashboard
=
id
(
new
PhabricatorDashboardQuery
())
->
setViewer
(
$viewer
)
->
withPHIDs
(
array
(
$dashboard_install
->
getDashboardPHID
()))
->
needPanels
(
true
)
->
executeOne
();
}
return
$dashboard
;
}
}
Event Timeline
Log In to Comment