PHP Class UserCountModel, thinksns

Author: 小川
Inheritance: extends Model
Afficher le fichier Open project: medz/thinksns-4

Méthodes publiques

Méthode Description
getUnreadCount ( integer $uid ) : array 获取指定用户的通知统计数目
resetUserCount ( integer $uid, string $key, integer $value ) 重置指定用户的通知统计数目
updateUserCount ( integer $uid, string $key, integer $rate ) 更新指定用户的通知统计数目

Method Details

getUnreadCount() public méthode

获取指定用户的通知统计数目
public getUnreadCount ( integer $uid ) : array
$uid integer 用户UID
Résultat array 指定用户的通知统计数目

resetUserCount() public méthode

重置指定用户的通知统计数目
public resetUserCount ( integer $uid, string $key, integer $value )
$uid integer 用户UID
$key string 统计数目的Key值
$value integer 统计数目变化的值,默认为0

updateUserCount() public méthode

更新指定用户的通知统计数目
public updateUserCount ( integer $uid, string $key, integer $rate )
$uid integer 用户UID
$key string 统计数目的Key值
$rate integer 数目变动的值