コード例 #1
0
ファイル: KBContent.class.php プロジェクト: shiyoi/workplanhp
 /**
  * 게시글의 댓글 개수를 반환한다.
  * @param string $prefix
  * @param string $endfix
  * @return string
  */
 public function getCommentsCountOld($prefix = '(', $endfix = ')')
 {
     if ($this->uid && defined('KBOARD_COMMNETS_VERSION')) {
         $commentList = new KBCommentList($this->uid);
         $commentsCount = $commentList->getCount();
         if ($commentsCount) {
             return "{$prefix}{$commentsCount}{$endfix}";
         }
     }
     return '';
 }