Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93594901
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
Sat, Nov 30, 00:49
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Dec 2, 00:49 (2 d)
Engine
blob
Format
Raw Data
Handle
22669764
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