Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1405070
PonderAnswerHistoryController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1019 B
Referenced Files
None
Subscribers
None
PonderAnswerHistoryController.php
View Options
<?php
final
class
PonderAnswerHistoryController
extends
PonderController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$id
=
$request
->
getURIData
(
'id'
);
$answer
=
id
(
new
PonderAnswerQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
if
(!
$answer
)
{
return
new
Aphront404Response
();
}
$timeline
=
$this
->
buildTransactionTimeline
(
$answer
,
new
PonderAnswerTransactionQuery
());
$timeline
->
setShouldTerminate
(
true
);
$qid
=
$answer
->
getQuestion
()->
getID
();
$aid
=
$answer
->
getID
();
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
setBorder
(
true
);
$crumbs
->
addTextCrumb
(
"Q{$qid}"
,
"/Q{$qid}"
);
$crumbs
->
addTextCrumb
(
"A{$aid}"
,
"/Q{$qid}#{$aid}"
);
$crumbs
->
addTextCrumb
(
pht
(
'History'
));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$timeline
,
),
array
(
'title'
=>
pht
(
'Answer History'
),
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 8, 7:21 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
328635
Default Alt Text
PonderAnswerHistoryController.php (1019 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment