Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97895411
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
Tue, Jan 7, 07:41
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Jan 9, 07:41 (2 d)
Engine
blob
Format
Raw Data
Handle
23433612
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
->
addTextCrumb
(
pht
(
'History'
));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$timeline
,
),
array
(
'title'
=>
pht
(
'Project History'
),
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment