Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98908593
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
Fri, Jan 17, 10:00
Size
1023 B
Mime Type
text/x-php
Expires
Sun, Jan 19, 10:00 (2 d)
Engine
blob
Format
Raw Data
Handle
23660597
Attached To
rPH Phabricator
ReleephBranchHistoryController.php
View Options
<?php
final
class
ReleephBranchHistoryController
extends
ReleephBranchController
{
private
$branchID
;
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
branchID
=
$data
[
'branchID'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$branch
=
id
(
new
ReleephBranchQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$this
->
branchID
))
->
executeOne
();
if
(!
$branch
)
{
return
new
Aphront404Response
();
}
$this
->
setBranch
(
$branch
);
$timeline
=
$this
->
buildTransactionTimeline
(
$branch
,
new
ReleephBranchTransactionQuery
());
$timeline
->
setShouldTerminate
(
true
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
pht
(
'History'
));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$timeline
,
),
array
(
'title'
=>
pht
(
'Branch History'
),
));
}
}
Event Timeline
Log In to Comment