Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72535040
ReleephProductHistoryController.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
Mon, Jul 15, 14:47
Size
943 B
Mime Type
text/x-php
Expires
Wed, Jul 17, 14:47 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
19061318
Attached To
rPH Phabricator
ReleephProductHistoryController.php
View Options
<?php
final
class
ReleephProductHistoryController
extends
ReleephProductController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$id
=
$request
->
getURIData
(
'projectID'
);
$product
=
id
(
new
ReleephProductQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
if
(!
$product
)
{
return
new
Aphront404Response
();
}
$this
->
setProduct
(
$product
);
$timeline
=
$this
->
buildTransactionTimeline
(
$product
,
new
ReleephProductTransactionQuery
());
$timeline
->
setShouldTerminate
(
true
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
pht
(
'History'
));
$crumbs
->
setBorder
(
true
);
$title
=
pht
(
'Product History'
);
return
$this
->
newPage
()
->
setTitle
(
$title
)
->
setCrumbs
(
$crumbs
)
->
appendChild
(
$timeline
);
}
}
Event Timeline
Log In to Comment