Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78625158
PhabricatorCommentEditType.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
Thu, Aug 22, 01:32
Size
624 B
Mime Type
text/x-php
Expires
Sat, Aug 24, 01:32 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20077835
Attached To
rPH Phabricator
PhabricatorCommentEditType.php
View Options
<?php
final
class
PhabricatorCommentEditType
extends
PhabricatorEditType
{
public
function
getValueType
()
{
return
id
(
new
AphrontStringHTTPParameterType
())->
getTypeName
();
}
public
function
generateTransactions
(
PhabricatorApplicationTransaction
$template
,
array
$spec
)
{
$comment
=
$template
->
getApplicationTransactionCommentObject
()
->
setContent
(
idx
(
$spec
,
'value'
));
$xaction
=
$this
->
newTransaction
(
$template
)
->
attachComment
(
$comment
);
return
array
(
$xaction
);
}
public
function
getValueDescription
()
{
return
pht
(
'Comment to add, formated as remarkup.'
);
}
}
Event Timeline
Log In to Comment