Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F443773
PonderAddCommentView.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
PonderAddCommentView.php
View Options
<?php
final
class
PonderAddCommentView
extends
AphrontView
{
private
$target
;
private
$user
;
private
$actionURI
;
private
$questionID
;
public
function
setTarget
(
$target
)
{
$this
->
target
=
$target
;
return
$this
;
}
public
function
setUser
(
PhabricatorUser
$user
)
{
$this
->
user
=
$user
;
return
$this
;
}
public
function
setQuestionID
(
$id
)
{
$this
->
questionID
=
$id
;
return
$this
;
}
public
function
setActionURI
(
$uri
)
{
$this
->
actionURI
=
$uri
;
return
$this
;
}
public
function
render
()
{
require_celerity_resource
(
'ponder-comment-table-css'
);
$is_serious
=
PhabricatorEnv
::
getEnvConfig
(
'phabricator.serious-business'
);
$questionID
=
$this
->
questionID
;
$target
=
$this
->
target
;
$form
=
new
AphrontFormView
();
$form
->
setUser
(
$this
->
user
)
->
setAction
(
$this
->
actionURI
)
->
setWorkflow
(
true
)
->
addHiddenInput
(
'target'
,
$target
)
->
addHiddenInput
(
'question_id'
,
$questionID
)
->
appendChild
(
id
(
new
AphrontFormTextAreaControl
())
->
setName
(
'content'
))
->
appendChild
(
id
(
new
AphrontFormSubmitControl
())
->
setValue
(
$is_serious
?
'Submit'
:
'Editorialize'
));
$view
=
id
(
new
AphrontMoreView
())
->
setSome
(
id
(
new
AphrontNullView
())->
render
())
->
setMore
(
$form
->
render
())
->
setExpandText
(
'Add Comment'
);
return
$view
->
render
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 11:05 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
64882
Default Alt Text
PonderAddCommentView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment