Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2896227
PhabricatorDashboardProfileController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
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
Jan 19 2025, 22:46 (6 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129534
Default Alt Text
PhabricatorDashboardProfileController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment