PHP Class UserBlacklistModel, thinksns

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

Public Properties

Property Type Description
$blackHash

Protected Properties

Property Type Description
$fields
$tableName

Public Methods

Method Description
addUser ( integer $uid, integer $fid ) : boolean 指定用户添加黑名单
cleanCache ( array $uids ) : boolean 清除用户的黑名单缓存信息
getUserBlackList ( integer $uid ) : array 获取指定用户的黑名单列表
removeUser ( integer $uid, integer $fid ) : boolean 指定用户取消黑名单

Method Details

addUser() public method

指定用户添加黑名单
public addUser ( integer $uid, integer $fid ) : boolean
$uid integer 指定用户UID
$fid integer 黑名单用户UID
return boolean 是否添加成功

cleanCache() public method

清除用户的黑名单缓存信息
public cleanCache ( array $uids ) : boolean
$uids array 用户UID数组
return boolean 缓存是否清除成功

getUserBlackList() public method

获取指定用户的黑名单列表
public getUserBlackList ( integer $uid ) : array
$uid integer 用户UID
return array 指定用户的黑名单列表

removeUser() public method

指定用户取消黑名单
public removeUser ( integer $uid, integer $fid ) : boolean
$uid integer 指定用户UID
$fid integer 黑名单用户UID
return boolean 是否移除成功

Property Details

$blackHash public static property

public static $blackHash

$fields protected property

protected $fields

$tableName protected property

protected $tableName