\think\dbWhere

Summary

Methods
Properties
Constants
__construct()
enclose()
parse()
__set()
__get()
__isset()
__unset()
offsetSet()
offsetExists()
offsetUnset()
offsetGet()
No public properties found
No constants found
parseItem()
$where
$enclose
N/A
No private methods found
No private properties found
N/A

Properties

$where

$where : array

查询表达式

Type

array

$enclose

$enclose : bool

是否需要增加括号

Type

bool

Methods

__construct()

__construct(array  $where = [], bool  $enclose = false) : mixed

创建一个查询表达式

Parameters

array $where

查询条件数组

bool $enclose

是否增加括号

Returns

mixed —

enclose()

enclose(bool  $enclose = true) : $this

设置是否添加括号

Parameters

bool $enclose

Returns

$this —

parse()

parse() : array

解析为Query对象可识别的查询条件数组

Returns

array —

__set()

__set(string  $name, mixed  $value) : void

修改器 设置数据对象的值

Parameters

string $name

名称

mixed $value

__get()

__get(string  $name) : mixed

获取器 获取数据对象的值

Parameters

string $name

名称

Returns

mixed —

__isset()

__isset(string  $name) : bool

检测数据对象的值

Parameters

string $name

名称

Returns

bool —

__unset()

__unset(string  $name) : void

销毁数据对象的值

Parameters

string $name

名称

offsetSet()

offsetSet(mixed  $name, mixed  $value) : mixed

Parameters

mixed $name
mixed $value

Returns

mixed —

offsetExists()

offsetExists(mixed  $name) : mixed

Parameters

mixed $name

Returns

mixed —

offsetUnset()

offsetUnset(mixed  $name) : mixed

Parameters

mixed $name

Returns

mixed —

offsetGet()

offsetGet(mixed  $name) : mixed

Parameters

mixed $name

Returns

mixed —

parseItem()

parseItem(string  $field, array  $where = []) : array

分析查询表达式

Parameters

string $field

查询字段

array $where

查询条件

Returns

array —