\LogicalExpression

逻辑表达式的模型

Summary

Methods
Properties
Constants
__construct()
createModel()
Join()
AutoValue()
$operator
$expressions
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$operator

$operator : 

逻辑操作符

Type

$expressions

$expressions : 

逻辑表达式字符串数组

Type

Methods

__construct()

__construct(  $expressions,   $op) 

Parameters

$expressions
$op

createModel()

createModel(mixed  $a, string  $b,   $op) : \LogicalExpression

创建逻辑表达式的模型

Parameters

mixed $a

可以是一个逻辑表达式,或者一个逻辑表达式的向量

string $b

一个逻辑表达式,当这个参数为空值的时候,$a参数必须是一个数组

$op

Returns

\LogicalExpression

函数返回一个逻辑表达式的模型

Join()

Join(  $key) 

Parameters

$key

AutoValue()

AutoValue(  $expr) : string

进行值表达式的构建

  • 如果是~起始,则说明是一个表达式,则截取第二个字符起始的剩余的字符串之后返回
  • 如果目标是被两个```或者'``符号包裹,则说明是字段的引用或者值,则不做任何处理
  • 多于其他的任意情况,都会将目标表达式看作为一个值,在值的两边添加'符号构成一个值表达式之后返回

Parameters

$expr

Returns

string —

SQL语句之中的值表达式