\Managepoints_model

Model Class

Summary

Methods
Properties
Constants
__construct()
__get()
getManagePointsList()
getManagePointsRow()
insertData()
setManagePointsByID()
getManagePointsCount()
_getWhere()
checkUnique()
delete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$table
N/A

Properties

$table

$table : 

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

getManagePointsList()

getManagePointsList(  $where = array(),   $select = '*',   $limit = 10,   $start) 

获取标签列表

Parameters

$where
$select
$limit
$start

getManagePointsRow()

getManagePointsRow(  $pointsId) 

获取单条数据

Parameters

$pointsId

insertData()

insertData(  $userData) 

添加

Parameters

$userData

setManagePointsByID()

setManagePointsByID(  $updateData,   $pointsId) 

修改

Parameters

$updateData
$pointsId

getManagePointsCount()

getManagePointsCount(  $where = array()) 

获取总条数

Parameters

$where

_getWhere()

_getWhere(  $where = array()) 

查询条件

Parameters

$where

checkUnique()

checkUnique(  $name,   $pointsId) 

验证唯一

Parameters

$name
$pointsId

delete()

delete(  $pointsId) 

删除用户

Parameters

$pointsId