\Userpoints_model

Model Class

Summary

Methods
Properties
Constants
__construct()
__get()
getUserCountRow()
insertData()
updateNum()
getTodayPointsNum()
getUserPointsList()
getUserPointsCount()
getUsermoonsumPoints()
_getWhere()
getUserPoints()
getLoginLastTime()
getTodayUserPoints()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$table
$DB
N/A

Properties

$table

$table : 

Type

$DB

$DB : 

Type

Methods

__construct()

__construct() : void

Class constructor

__get()

__get(string  $key) 

__get magic

Allows models to access CI's loaded classes using the same syntax as controllers.

Parameters

string $key

getUserCountRow()

getUserCountRow(  $userId) 

获取单条数据

Parameters

$userId

insertData()

insertData(  $userData) 

添加

Parameters

$userData

updateNum()

updateNum(  $data,   $userId) 

更论坛的点赞数 次数加1

Parameters

$data
$userId

getTodayPointsNum()

getTodayPointsNum(  $userId,   $stime,   $etime,   $typeFlag) 

判断帖子今天 用户评论了几条

Parameters

$userId
$stime
$etime
$typeFlag

getUserPointsList()

getUserPointsList(  $param,   $userId,   $limit = 10,   $start,   $time) 

Parameters

$param
$userId
$limit
$start
$time

getUserPointsCount()

getUserPointsCount(  $param,   $userId,   $time) 

Parameters

$param
$userId
$time

getUsermoonsumPoints()

getUsermoonsumPoints(  $param,   $userId,   $time) 

Parameters

$param
$userId
$time

_getWhere()

_getWhere(  $where = array()) 

Parameters

$where

getUserPoints()

getUserPoints(  $userId,   $stime,   $etime) 

Parameters

$userId
$stime
$etime

getLoginLastTime()

getLoginLastTime(  $userId,   $flag,   $typeFlag = 5) 

获取最后一次登录的时间

Parameters

$userId
$flag
$typeFlag

getTodayUserPoints()

getTodayUserPoints(  $userId,   $stime,   $etime) 

Parameters

$userId
$stime
$etime