/** * 댓글 고유번호를 입력받아 해당 댓글을 반환한다. * @param int $uid * @return Comment */ public function getComment($uid) { global $wpdb; $uid = intval($uid); $row = $wpdb->get_row("SELECT * FROM `{$wpdb->prefix}kboard_comments` WHERE `uid`='{$uid}' LIMIT 1"); if ($row) { $comment = new KBComment(); $comment->initWithRow($row); return $comment; } else { return $row; } }