Path: blob/master/src/applications/herald/field/HeraldCommentContentField.php
12256 views
<?php12final class HeraldCommentContentField extends HeraldField {34const FIELDCONST = 'comment.content';56public function getHeraldFieldName() {7return pht('Comment content');8}910public function getFieldGroupKey() {11return HeraldTransactionsFieldGroup::FIELDGROUPKEY;12}1314public function getHeraldFieldValue($object) {15$adapter = $this->getAdapter();1617$xactions = $adapter->getAppliedTransactions();1819$result = array();20foreach ($xactions as $xaction) {21if (!$xaction->hasComment()) {22continue;23}2425$comment = $xaction->getComment();26$content = $comment->getContent();2728$result[] = $content;29}3031return $result;32}3334public function supportsObject($object) {35return true;36}3738protected function getHeraldFieldStandardType() {39return self::STANDARD_TEXT_LIST;40}4142}434445