Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92699571
ReleephProjectHistoryController.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
Fri, Nov 22, 21:56
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 21:56 (2 d)
Engine
blob
Format
Raw Data
Handle
22489747
Attached To
rPH Phabricator
ReleephProjectHistoryController.php
View Options
<?php
final
class
ReleephProjectHistoryController
extends
ReleephProjectController
{
private
$id
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
id
=
$data
[
'projectID'
];
parent
::
willProcessRequest
(
$data
);
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$project
=
id
(
new
ReleephProjectQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$this
->
id
))
->
executeOne
();
if
(!
$project
)
{
return
new
Aphront404Response
();
}
$xactions
=
id
(
new
ReleephProjectTransactionQuery
())
->
setViewer
(
$viewer
)
->
withObjectPHIDs
(
array
(
$project
->
getPHID
()))
->
execute
();
$timeline
=
id
(
new
PhabricatorApplicationTransactionView
())
->
setUser
(
$viewer
)
->
setObjectPHID
(
$project
->
getPHID
())
->
setTransactions
(
$xactions
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addCrumb
(
id
(
new
PhabricatorCrumbView
())
->
setName
(
pht
(
'History'
)));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$timeline
,
),
array
(
'title'
=>
pht
(
'Project History'
),
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment