Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F429491
PonderQuestionHistoryController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
985 B
Referenced Files
None
Subscribers
None
PonderQuestionHistoryController.php
View Options
<?php
final
class
PonderQuestionHistoryController
extends
PonderController
{
private
$id
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
id
=
$data
[
'id'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$question
=
id
(
new
PonderQuestionQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$this
->
id
))
->
executeOne
();
if
(!
$question
)
{
return
new
Aphront404Response
();
}
$timeline
=
$this
->
buildTransactionTimeline
(
$question
,
new
PonderQuestionTransactionQuery
());
$timeline
->
setShouldTerminate
(
true
);
$qid
=
$question
->
getID
();
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
"Q{$qid}"
,
"/Q{$qid}"
);
$crumbs
->
addTextCrumb
(
pht
(
'History'
));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$timeline
,
),
array
(
'title'
=>
pht
(
'Question History'
),
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 8:35 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
59719
Default Alt Text
PonderQuestionHistoryController.php (985 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment