\App\TraitsMysqlTable

Summary

Methods
Properties
Constants
setCopyTable()
detail()
setFilterFields()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

setCopyTable()

setCopyTable(string  $new_table, string  $old_table) : boolean

复制表

Parameters

string $new_table
string $old_table

Returns

boolean

detail()

detail(\App\Traits\int  $id, \App\Traits\string  $filed = '*', \App\Traits\bool  $lock = false, array  $with = array(), array  $withCount = array()) 

Parameters

\App\Traits\int $id
\App\Traits\string $filed
\App\Traits\bool $lock
array $with
array $withCount

setFilterFields()

setFilterFields(array  $params) : array

过滤移除非当前表的字段参数

Parameters

array $params

Returns

array