Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122577675
PonderQuestionHistoryController.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, Jul 20, 16:44
Size
933 B
Mime Type
text/x-php
Expires
Tue, Jul 22, 16:44 (2 d)
Engine
blob
Format
Raw Data
Handle
27506311
Attached To
rPH Phabricator
PonderQuestionHistoryController.php
View Options
<?php
final
class
PonderQuestionHistoryController
extends
PonderController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$id
=
$request
->
getURIData
(
'id'
);
$question
=
id
(
new
PonderQuestionQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
if
(!
$question
)
{
return
new
Aphront404Response
();
}
$timeline
=
$this
->
buildTransactionTimeline
(
$question
,
new
PonderQuestionTransactionQuery
());
$timeline
->
setShouldTerminate
(
true
);
$qid
=
$question
->
getID
();
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
setBorder
(
true
);
$crumbs
->
addTextCrumb
(
"Q{$qid}"
,
"/Q{$qid}"
);
$crumbs
->
addTextCrumb
(
pht
(
'History'
));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$timeline
,
),
array
(
'title'
=>
pht
(
'Question History'
),
));
}
}
Event Timeline
Log In to Comment