Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106646428
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
Sat, Mar 29, 07:41
Size
937 B
Mime Type
text/x-php
Expires
Mon, Mar 31, 08:41 (2 d)
Engine
blob
Format
Raw Data
Handle
25242467
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