\Statistics_model

Model Class

Summary

Methods
Properties
Constants
__construct()
__get()
getStatisticsCount()
insertData()
updateNum()
getViewStatisticsRow()
getStatisticsYearCount()
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

getStatisticsCount()

getStatisticsCount(  $type,   $stime,   $etime) 

数据统计

Parameters

$type
$stime
$etime

insertData()

insertData(  $data = array()) 

Parameters

$data

updateNum()

updateNum(  $data,   $time,   $type) 

Parameters

$data
$time
$type

getViewStatisticsRow()

getViewStatisticsRow(  $time,   $type) 

Parameters

$time
$type

getStatisticsYearCount()

getStatisticsYearCount(  $type,   $stime,   $etime) 

Parameters

$type
$stime
$etime