Property | Type | Description | |
---|---|---|---|
$error | |||
$fields | |||
$tableName |
Method | Description | |
---|---|---|
doFollowWeiba ( $uid, $weiba_id ) : integer | 关注微吧 | |
getFollowStateByWeibaid ( $uid, $weiba_id ) : boolean | 判断是否关注某个微吧 | |
getFollowStateByWeibaids ( $uid, $weiba_ids ) : [type] | 批量获取微吧关注状态 | |
getHashWeiba ( string $k = 'weiba_id', string $v = 'weiba_name' ) : array | 获取微吧的Hash数组 | |
getLastError ( ) | ||
getPostList ( integer $limit = 20, array $map = [] ) : array | 获取帖子列表,后台可以根据条件查询 | |
getWeibaById ( integer $weiba_id ) : array | 根据微吧ID获取微吧信息 | |
getWeibaList ( integer $limit = 20, array $map = [] ) : array | 获取微吧列表,后台可以根据条件查询 | |
getWeibaName ( $weiba_ids ) | * 获取微吧名称 | |
get_posts_forapi ( $limit = 20, $page = 1, $weiba_id = null ) : array | 获取帖子列表 | |
get_weibas_forapi ( $since_id, $max_id, $limit = 20, $page = 1, $uid ) : array | 获取微吧列表 | |
interestingWeiba ( $uid, $pagesize = 4 ) | 个人感兴趣的群组 | |
myWeibaForApi ( $limit, $page, $uid, $type ) : array | 获取我的帖子 | |
searchPostForApi ( $keyword, $limit, $page ) : array | 搜索帖子 | |
searchWeibaForApi ( $keyword, $limit, $page, $uid ) : array | 搜索微吧 | |
setNewcount ( $weiba_id, $num = 1 ) | ||
unFollowWeiba ( $uid, $weiba_id ) : integer | 取消关注微吧 |
Method | Description | |
---|---|---|
_formatFollowState ( integer $uid, $weiba_ids, array $follow_data ) : array | 格式化,用户的关注数据 |
public doFollowWeiba ( $uid, $weiba_id ) : integer | ||
return | integer | 新添加的数据ID |
public getFollowStateByWeibaid ( $uid, $weiba_id ) : boolean | ||
return | boolean | 是否已关注 |
public getFollowStateByWeibaids ( $uid, $weiba_ids ) : [type] | ||
return | [type] |
public getWeibaById ( integer $weiba_id ) : array | ||
$weiba_id | integer | 微吧ID |
return | array | 微吧信息 |
public get_posts_forapi ( $limit = 20, $page = 1, $weiba_id = null ) : array | ||
return | array | 帖子列表 |
public get_weibas_forapi ( $since_id, $max_id, $limit = 20, $page = 1, $uid ) : array | ||
return | array | 微吧列表 |
public myWeibaForApi ( $limit, $page, $uid, $type ) : array | ||
return | array | 帖子列表 |
public searchPostForApi ( $keyword, $limit, $page ) : array | ||
return | array | 帖子列表 |
public searchWeibaForApi ( $keyword, $limit, $page, $uid ) : array | ||
return | array | 微吧列表 |
public unFollowWeiba ( $uid, $weiba_id ) : integer | ||
return | integer | 新添加的数据ID |