3 final class HeraldCommentContentField
extends HeraldField
{
5 const FIELDCONST
= 'comment.content';
7 public function getHeraldFieldName() {
8 return pht('Comment content');
11 public function getFieldGroupKey() {
12 return HeraldTransactionsFieldGroup
::FIELDGROUPKEY
;
15 public function getHeraldFieldValue($object) {
16 $adapter = $this->getAdapter();
18 $xactions = $adapter->getAppliedTransactions();
21 foreach ($xactions as $xaction) {
22 if (!$xaction->hasComment()) {
26 $comment = $xaction->getComment();
27 $content = $comment->getContent();
35 public function supportsObject($object) {
39 protected function getHeraldFieldStandardType() {
40 return self
::STANDARD_TEXT_LIST
;