Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100238188
PhabricatorCommentEditField.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
Wed, Jan 29, 06:44
Size
937 B
Mime Type
text/x-php
Expires
Fri, Jan 31, 06:44 (2 d)
Engine
blob
Format
Raw Data
Handle
23929027
Attached To
rPH Phabricator
PhabricatorCommentEditField.php
View Options
<?php
final
class
PhabricatorCommentEditField
extends
PhabricatorEditField
{
private
$isWebOnly
;
public
function
setIsWebOnly
(
$is_web_only
)
{
$this
->
isWebOnly
=
$is_web_only
;
return
$this
;
}
public
function
getIsWebOnly
()
{
return
$this
->
isWebOnly
;
}
protected
function
newControl
()
{
return
new
PhabricatorRemarkupControl
();
}
protected
function
newEditType
()
{
return
new
PhabricatorCommentEditType
();
}
protected
function
newConduitParameterType
()
{
if
(
$this
->
getIsWebOnly
())
{
return
null
;
}
else
{
return
new
ConduitStringParameterType
();
}
}
public
function
shouldGenerateTransactionsFromSubmit
()
{
return
!
$this
->
isPrimaryCommentField
();
}
public
function
shouldGenerateTransactionsFromComment
()
{
return
$this
->
isPrimaryCommentField
();
}
private
function
isPrimaryCommentField
()
{
return
(
$this
->
getKey
()
===
'comment'
);
}
}
Event Timeline
Log In to Comment