Properties

$table

$table : 

Type

$db_user

$db_user : 

Type

$db_app

$db_app : 

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

check()

check(  $where,   $select = '*',   $limit = 16,   $start) 

Parameters

$where
$select
$limit
$start

qiye_get()

qiye_get(  $where) 

Parameters

$where

qiye_add()

qiye_add(  $data) 

Parameters

$data

qiye_update()

qiye_update(  $where,   $data) 

Parameters

$where
$data

qiye_type()

qiye_type() 

update()

update(  $userId,   $data) 

修改

Parameters

$userId
$data

userpoint_insert()

userpoint_insert(  $data) 

Parameters

$data

updateViewNum()

updateViewNum(  $userId) 

Parameters

$userId

getUserByNamePass()

getUserByNamePass(\unknown  $username, \unknown  $password) 

根据用户名和密码获取用户信息

Parameters

\unknown $username
\unknown $password

getUserList()

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

获取用户列表

Parameters

$where
$select
$limit
$start

getUserAllList()

getUserAllList() 

获取用户列表

getUserRow()

getUserRow(  $userId) 

获取单条数据

Parameters

$userId

getUserInfoRow()

getUserInfoRow(  $userId) 

Parameters

$userId

insertData()

insertData(  $userData) 

添加

Parameters

$userData

getUserCount()

getUserCount(  $where = array()) 

获取总条数

Parameters

$where

_getWhere()

_getWhere(  $where = array()) 

查询条件

Parameters

$where

checkUnique()

checkUnique(  $name,   $userId) 

验证唯一

Parameters

$name
$userId

checkPassword()

checkPassword(  $password,   $userId) 

验证密码是否正确

Parameters

$password
$userId

checkPhoneEmail()

checkPhoneEmail(  $param,   $userId,   $type = 'phone') 

Parameters

$param
$userId
$type

delete()

delete(  $userId) 

删除用户

Parameters

$userId

third_select()

third_select(  $where) 

Parameters

$where

third_insert()

third_insert(  $data) 

Parameters

$data