\Systemlog_model

系统日志表model

Summary

Methods
Properties
Constants
__construct()
__get()
systemlogList()
systemlogCount()
getSystemlog()
addSystemlog()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_getWhere()
$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

systemlogList()

systemlogList(  $param = array(),   $start,   $limit = 10) : array

系统日志表列表

Parameters

$param

array

$start

int 偏移量

$limit

int 限制调试

Returns

array

systemlogCount()

systemlogCount(  $param = array()) : integer

获取总数

Parameters

$param

array

Returns

integer

getSystemlog()

getSystemlog(  $logId) : array

系统日志表

Parameters

$logId

int 日志id

Returns

array

addSystemlog()

addSystemlog(  $data) : boolean

添加日志

Parameters

$data

array( 'userId' => 用户ID, 'userName' => 用户名, 'tureName' => 用户真实姓名, 'operation' => 操作内容, 'operationTime' =>操作时间 )

Returns

boolean

_getWhere()

_getWhere(  $param = array()) 

查询条件

@param $data array( 'userId' => 用户ID, 'userName' => 用户名, 'tureName' => 用户真实姓名, 'stattime' => 开始时间, 'endtime' => 结束时间 ) return array

Parameters

$param