Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96117041
ReleephBranchHistoryController.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
Sun, Dec 22, 19:26
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Dec 24, 19:26 (2 d)
Engine
blob
Format
Raw Data
Handle
23125694
Attached To
rPH Phabricator
ReleephBranchHistoryController.php
View Options
<?php
final
class
ReleephBranchHistoryController
extends
ReleephProjectController
{
private
$id
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
id
=
$data
[
'branchID'
];
parent
::
willProcessRequest
(
$data
);
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$branch
=
id
(
new
ReleephBranchQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$this
->
id
))
->
executeOne
();
if
(!
$branch
)
{
return
new
Aphront404Response
();
}
$xactions
=
id
(
new
ReleephBranchTransactionQuery
())
->
setViewer
(
$viewer
)
->
withObjectPHIDs
(
array
(
$branch
->
getPHID
()))
->
execute
();
$timeline
=
id
(
new
PhabricatorApplicationTransactionView
())
->
setUser
(
$viewer
)
->
setObjectPHID
(
$branch
->
getPHID
())
->
setTransactions
(
$xactions
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
pht
(
'History'
));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$timeline
,
),
array
(
'title'
=>
pht
(
'Branch History'
),
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment