コード例 #1
0
 public function getBodyForFeed(PhabricatorFeedStory $story)
 {
     $old = $this->getOldValue();
     $new = $this->getNewValue();
     $body = null;
     switch ($this->getTransactionType()) {
         case PhabricatorTransactions::TYPE_COMMENT:
             $text = $this->getComment()->getContent();
             if (strlen($text)) {
                 $body = $story->getMarkupFieldOutput('comment/' . $this->getID());
             }
             break;
     }
     return $body;
 }