Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121875447
PhabricatorDashboardHistoryController.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
Mon, Jul 14, 13:09
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Jul 16, 13:09 (2 d)
Engine
blob
Format
Raw Data
Handle
27386642
Attached To
rPH Phabricator
PhabricatorDashboardHistoryController.php
View Options
<?php
final
class
PhabricatorDashboardHistoryController
extends
PhabricatorDashboardController
{
private
$id
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
id
=
$data
[
'id'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$id
=
$this
->
id
;
$dashboard_view_uri
=
$this
->
getApplicationURI
(
'view/'
.
$id
.
'/'
);
$dashboard_manage_uri
=
$this
->
getApplicationURI
(
'manage/'
.
$id
.
'/'
);
$dashboard
=
id
(
new
PhabricatorDashboardQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$this
->
id
))
->
executeOne
();
if
(!
$dashboard
)
{
return
new
Aphront404Response
();
}
$title
=
$dashboard
->
getName
();
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
setBorder
(
true
);
$crumbs
->
addTextCrumb
(
pht
(
'Dashboard %d'
,
$dashboard
->
getID
()),
$dashboard_view_uri
);
$crumbs
->
addTextCrumb
(
pht
(
'Manage'
),
$dashboard_manage_uri
);
$crumbs
->
addTextCrumb
(
pht
(
'History'
));
$timeline
=
$this
->
buildTransactionTimeline
(
$dashboard
,
new
PhabricatorDashboardTransactionQuery
());
$timeline
->
setShouldTerminate
(
true
);
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$timeline
,
),
array
(
'title'
=>
$title
,
));
}
}
Event Timeline
Log In to Comment