Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F538402
PhabricatorDashboardProfileController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorDashboardProfileController.php
View Options
<?php
abstract
class
PhabricatorDashboardProfileController
extends
PhabricatorController
{
private
$dashboard
;
public
function
setDashboard
(
PhabricatorDashboard
$dashboard
)
{
$this
->
dashboard
=
$dashboard
;
return
$this
;
}
public
function
getDashboard
()
{
return
$this
->
dashboard
;
}
protected
function
buildHeaderView
()
{
$viewer
=
$this
->
getViewer
();
$dashboard
=
$this
->
getDashboard
();
$id
=
$dashboard
->
getID
();
if
(
$dashboard
->
isArchived
())
{
$status_icon
=
'fa-ban'
;
$status_color
=
'dark'
;
}
else
{
$status_icon
=
'fa-check'
;
$status_color
=
'bluegrey'
;
}
$status_name
=
idx
(
PhabricatorDashboard
::
getStatusNameMap
(),
$dashboard
->
getStatus
());
return
id
(
new
PHUIHeaderView
())
->
setUser
(
$viewer
)
->
setHeader
(
$dashboard
->
getName
())
->
setPolicyObject
(
$dashboard
)
->
setStatus
(
$status_icon
,
$status_color
,
$status_name
)
->
setHeaderIcon
(
$dashboard
->
getIcon
());
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
setBorder
(
true
);
$dashboard
=
$this
->
getDashboard
();
if
(
$dashboard
)
{
$crumbs
->
addTextCrumb
(
$dashboard
->
getName
(),
$dashboard
->
getURI
());
}
return
$crumbs
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 8:45 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
119998
Default Alt Text
PhabricatorDashboardProfileController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment