Properties

$db

$db : 

Type

Methods

__construct()

__construct() 

getComments()

getComments(integer  $spot, integer  $blogId = null, string  $hide = null, integer  $page = null) : array

获取评论

Parameters

integer $spot

0:前台 1:后台 2: 手机

integer $blogId
string $hide
integer $page

Returns

array

getOneComment()

getOneComment(  $commentId,   $nl2br = false) 

Parameters

$commentId
$nl2br

getCommentNum()

getCommentNum(  $blogId = null,   $hide = null) 

Parameters

$blogId
$hide

delComment()

delComment(  $commentId) 

Parameters

$commentId

delCommentByIp()

delCommentByIp(  $ip) 

Parameters

$ip

hideComment()

hideComment(  $commentId) 

Parameters

$commentId

showComment()

showComment(  $commentId) 

Parameters

$commentId

replyComment()

replyComment(  $blogId,   $pid,   $content,   $hide) 

Parameters

$blogId
$pid
$content
$hide

batchComment()

batchComment(  $action,   $comments) 

Parameters

$action
$comments

updateCommentNum()

updateCommentNum(  $blogId) 

Parameters

$blogId

addComment()

addComment(  $name,   $content,   $mail,   $url,   $imgcode,   $blogId,   $pid) 

Parameters

$name
$content
$mail
$url
$imgcode
$blogId
$pid

updateComment()

updateComment(  $commentData,   $commentId) 

Parameters

$commentData
$commentId

isCommentExist()

isCommentExist(  $blogId,   $name,   $content) 

Parameters

$blogId
$name
$content

isYoursComment()

isYoursComment(  $cid) 

Parameters

$cid

isNameAndMailValid()

isNameAndMailValid(  $name,   $mail) 

Parameters

$name
$mail

isLogCanComment()

isLogCanComment(  $blogId) 

Parameters

$blogId

isCommentTooFast()

isCommentTooFast() 

setCommentCookie()

setCommentCookie(  $name,   $mail,   $url) 

Parameters

$name
$mail
$url