\Userdetail_model

Model Class

Summary

Methods
Properties
Constants
__construct()
__get()
getUserDetailRow()
insertData()
setUserByID()
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

getUserDetailRow()

getUserDetailRow(  $userId) 

获取单条数据

Parameters

$userId

insertData()

insertData(  $userData) 

添加

Parameters

$userData

setUserByID()

setUserByID(  $updateData,   $userdetailId) 

修改

Parameters

$updateData
$userdetailId

delete()

delete(  $userId) 

删除用户

Parameters

$userId