PHP Class WeibaReplyModel, thinksns

Author: jason ([email protected])
Inheritance: extends Model
Mostrar archivo Open project: medz/thinksns-4

Protected Properties

Property Type Description
$error
$fields
$tableName

Public Methods

Method Description
addReplyForApi ( $post_id, $content, $uid ) : boolean 添加帖子评论forApi
addReplyToCommentForApi ( $reply_id, $content, $uid ) : boolean 添加评论回复forApi
delReplyForApi ( $reply_id ) : boolean 删除评论forapi
getReplyList ( array $map = null, string $order = 'reply_id desc', integer $limit = 10 ) : array 获取回复列表
getReplyListForApi ( array $map = null, string $order = 'reply_id desc', integer $limit = 20, $page = 1 ) : array 获取回复列表forapi

Method Details

addReplyForApi() public method

添加帖子评论forApi
public addReplyForApi ( $post_id, $content, $uid ) : boolean
return boolean 是否评论成功

addReplyToCommentForApi() public method

添加评论回复forApi
public addReplyToCommentForApi ( $reply_id, $content, $uid ) : boolean
return boolean 是否回复成功

delReplyForApi() public method

删除评论forapi
public delReplyForApi ( $reply_id ) : boolean
return boolean 是否回复成功

getReplyList() public method

获取回复列表
public getReplyList ( array $map = null, string $order = 'reply_id desc', integer $limit = 10 ) : array
$map array 查询条件
$order string 排序条件,默认为comment_id ASC
$limit integer 结果集数目,默认为10
return array 评论列表信息

getReplyListForApi() public method

获取回复列表forapi
public getReplyListForApi ( array $map = null, string $order = 'reply_id desc', integer $limit = 20, $page = 1 ) : array
$map array 查询条件
$order string 排序条件,默认为comment_id ASC
$limit integer 结果集数目,默认为10
return array 评论列表信息

Property Details

$error protected_oe property

protected $error

$fields protected_oe property

protected $fields

$tableName protected_oe property

protected $tableName