热门 emlog MVC解构10--Model模型之Comment_Model
评论模型Comment_Model是和用户交互的重要保证:属性表:private $db内部数据库连接对象,用于在数据库存取评论数据方法表:方法注释function __construct()构造方法,新建数据库连接对象function getComments($spot=0,$blogId=null,$hide=null,$page=null)获取评论列表,参数$spot模式有三种0:前台,1:后台,2:手机,$blogId是日志的唯一ID,$hide是是否隐藏,'y'/'n',$page是页码,返回日志评论的数组function getOneComment(...