Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82636855
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
Thu, Sep 12, 13:55
Size
1009 B
Mime Type
text/x-php
Expires
Sat, Sep 14, 13:55 (2 d)
Engine
blob
Format
Raw Data
Handle
20724811
Attached To
rPH Phabricator
ReleephProductHistoryController.php
View Options
<?php
final
class
ReleephProductHistoryController
extends
ReleephProductController
{
private
$id
;
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
id
=
$data
[
'projectID'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$product
=
id
(
new
ReleephProductQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$this
->
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'
));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$timeline
,
),
array
(
'title'
=>
pht
(
'Product History'
),
));
}
}
Event Timeline
Log In to Comment