PHP Class PeopleModel, thinksns

User: Workstation Date: 3/23/2015 Time: 10:18 PM
Inheritance: extends CI_Model
Show file Open project: medz/thinksns-4 Class Usage Examples

Public Methods

Method Description
_getVerifyData ( array $data, string $field = 'u.uid, v.info', string $order = 'u.uid DESC', integer $page = 30 ) : array 获取筛选认证用数据列表
getPeople ( array $data, string $type ) : array 通过条件查询相应的用户信息
getTopUserInfos ( array $uids, string $type, integer $limit = 3 ) : array 获取指定用户的相关信息
getUserInfos ( array $uids, $data ) : array 获取用户相关信息
searchUser ( $searchKey, $lastUid, $curType = 1, $limit = 20, $page = 1 )

Private Methods

Method Description
_getFilterData ( array $data, string $field = 'u.uid', string $order = 'u.uid DESC', integer $page = 30 ) : array 获取筛选用户数据列表
_getOfficialData ( array $data, string $field = 'u.uid, o.info', string $order = 'u.uid DESC', integer $page = 30 ) : array 获取筛选官方用户数据列表

Method Details

_getVerifyData() public method

获取筛选认证用数据列表
public _getVerifyData ( array $data, string $field = 'u.uid, v.info', string $order = 'u.uid DESC', integer $page = 30 ) : array
$data array 筛选相关条件
$field string 字段数据
$order string 排序数据
$page integer 分页个数
return array 筛选认证用数据列表

getPeople() public method

通过条件查询相应的用户信息
public getPeople ( array $data, string $type ) : array
$data array 相应的查询条件
$type string 查询类型
return array 相应的用户信息

getTopUserInfos() public method

获取指定用户的相关信息
public getTopUserInfos ( array $uids, string $type, integer $limit = 3 ) : array
$uids array 指定用户ID数组
$type string 指定类型
$limit integer 显示数据,默认为3
return array 指定用户的相关信息

getUserInfos() public method

获取用户相关信息
public getUserInfos ( array $uids, $data ) : array
$uids array 用户ID数组
return array 用户相关数组

searchUser() public method

public searchUser ( $searchKey, $lastUid, $curType = 1, $limit = 20, $page = 1 )