Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F551953
HeraldCommentContentField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
859 B
Referenced Files
None
Subscribers
None
HeraldCommentContentField.php
View Options
<?php
final
class
HeraldCommentContentField
extends
HeraldField
{
const
FIELDCONST
=
'comment.content'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Comment content'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldTransactionsFieldGroup
::
FIELDGROUPKEY
;
}
public
function
getHeraldFieldValue
(
$object
)
{
$adapter
=
$this
->
getAdapter
();
$xactions
=
$adapter
->
getAppliedTransactions
();
$result
=
array
();
foreach
(
$xactions
as
$xaction
)
{
if
(!
$xaction
->
hasComment
())
{
continue
;
}
$comment
=
$xaction
->
getComment
();
$content
=
$comment
->
getContent
();
$result
[]
=
$content
;
}
return
$result
;
}
public
function
supportsObject
(
$object
)
{
return
true
;
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_TEXT_LIST
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 4:01 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
123317
Default Alt Text
HeraldCommentContentField.php (859 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment