Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2364729
PonderQuestionDetailView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PonderQuestionDetailView.php
View Options
<?php
final
class
PonderQuestionDetailView
extends
AphrontView
{
private
$question
;
private
$handles
;
public
function
setQuestion
(
$question
)
{
$this
->
question
=
$question
;
return
$this
;
}
public
function
setHandles
(
$handles
)
{
$this
->
handles
=
$handles
;
return
$this
;
}
public
function
render
()
{
require_celerity_resource
(
'ponder-core-view-css'
);
$question
=
$this
->
question
;
$handles
=
$this
->
handles
;
$user
=
$this
->
user
;
$panel
=
id
(
new
AphrontPanelView
())
->
addClass
(
"ponder-panel"
);
$contentview
=
new
PonderPostBodyView
();
$contentview
->
setTarget
(
$question
)
->
setQuestion
(
$question
)
->
setUser
(
$user
)
->
setHandles
(
$handles
)
->
setAction
(
PonderConstants
::
ASKED_LITERAL
);
$commentview
=
new
PonderCommentListView
();
$commentview
->
setUser
(
$user
)
->
setHandles
(
$handles
)
->
setComments
(
$question
->
getComments
())
->
setTarget
(
$question
->
getPHID
())
->
setQuestionID
(
$question
->
getID
())
->
setActionURI
(
new
PhutilURI
(
'/ponder/comment/add/'
));
$panel
->
appendChild
(
$contentview
);
$panel
->
appendChild
(
$commentview
);
return
$panel
->
render
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 5:40 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
389060
Default Alt Text
PonderQuestionDetailView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment