PHP Class ChannelFollowModel, thinksns

Author: zivss ([email protected])
Inheritance: extends Model
ファイルを表示 Open project: medz/thinksns-4

Protected Properties

Property Type Description
$tableName

Public Methods

Method Description
getFollowList ( integer $uid ) : array 获取指定用户的关注列表
getFollowStatus ( integer $uid, integer $cid ) : boolean 获取指定用户与指定频道分类的关注状态
getFollowingCount ( integer $cid ) : integer 获取指定分类的关注数目
getFollowingFeed ( string $where = '', integer $limit = 10, integer $uid = '', integer $fgid = '' ) : array 获取指定用户所关注频道的所有分享,默认为当前登录用户
upFollow ( integer $uid, integer $cid, string $type ) : boolean 更新频道的关注状态

Method Details

getFollowList() public method

获取指定用户的关注列表
public getFollowList ( integer $uid ) : array
$uid integer 指定用户ID
return array 指定用户的关注列表

getFollowStatus() public method

获取指定用户与指定频道分类的关注状态
public getFollowStatus ( integer $uid, integer $cid ) : boolean
$uid integer 用户ID
$cid integer 频道分类ID
return boolean 返回是否关注

getFollowingCount() public method

获取指定分类的关注数目
public getFollowingCount ( integer $cid ) : integer
$cid integer 频道分类ID
return integer 指定分类的关注数目

getFollowingFeed() public method

获取指定用户所关注频道的所有分享,默认为当前登录用户
public getFollowingFeed ( string $where = '', integer $limit = 10, integer $uid = '', integer $fgid = '' ) : array
$where string 查询条件
$limit integer 结果集数目,默认为10
$uid integer 指定用户ID,默认为空
$fgid integer 关注频道ID,默认为空
return array 指定用户所关注频道的所有分享,默认为当前登录用户

upFollow() public method

更新频道的关注状态
public upFollow ( integer $uid, integer $cid, string $type ) : boolean
$uid integer 关注用户ID
$cid integer 频道分类ID
$type string 更新频道操作,add or del
return boolean 更新频道关注状态是否成功

Property Details

$tableName protected_oe property

protected $tableName