/** * 게시글의 댓글 개수를 반환한다. * @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 ''; }