Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102548542
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
Fri, Feb 21, 21:32
Size
937 B
Mime Type
text/x-php
Expires
Sun, Feb 23, 21:32 (2 d)
Engine
blob
Format
Raw Data
Handle
24357193
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