Class Feed
Methods summary
public static
integer
|
#
pushFeed( integer $uid, string $module, string $table, integer $rowid, array $data, string $type = 'post' )
推送模块动态
Parameters
- $uid
- 动态作者
- $module
- 产生动态的模块
- $table
- 产生动态的资源表
- $rowid
- 资源表ID
- $data
- 推送动态所需的数据数组
- $type
- 动态类型 (只支持post与postimage,不支持转发)
Returns
integer 推送成功与否
|
public static
string
|
#
getViewCondition( integer $uid, string $tableprefix = '' )
获得查看范围的查询语句
Parameters
- $uid
- 查看人的用户ID
- $tableprefix
- 可能出现的表前缀,在联表查询时可能会用到
Returns
string 针对uid的微博查看范围查询语句
|
public static
boolean
|
#
hasView( integer $feedid, integer $uid )
获得指定feed与指定$uid之间是否有可见关系
Parameters
Returns
boolean true为有权限,false为无权限
|