Page MenuHomePhorge

HeraldCommentContentField.php
No OneTemporary

Size
859 B
Referenced Files
None
Subscribers
None

HeraldCommentContentField.php

<?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

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)

Event Timeline