\Framework\ORM\TraitModelTrait

Summary

Methods
Properties
Constants
searchTimeAttr()
getMonth()
getFieldValue()
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

searchTimeAttr()

searchTimeAttr(\think\Model  $query, mixed  $value, mixed  $data) : void

时间段搜索器.

Parameters

\think\Model $query
mixed $value
mixed $data

getMonth()

getMonth(int  $ceil) : array

获取本季度 time.

Parameters

int $ceil

Returns

array —

getFieldValue()

getFieldValue(mixed  $value, string  $filed, ?string  $valueKey = '', array|string[]  $where = []) : mixed

获取某个字段内的值

Parameters

mixed $value
string $filed
?string $valueKey
array|string[] $where

Returns

mixed —