示例#1
0
 /**
  * Creates new
  * @param Feed $feed
  * @param $id
  * @return Comment
  */
 public static function create(Feed $feed)
 {
     $forum = $feed->getForum();
     $comment = new Comment($forum["ID"], $feed->getEntity()->getFullId());
     $comment->getEntity()->setPermission($feed->getEntity()->getPermission());
     return $comment;
 }