Class yii\db\conditions\OrCondition

继承yii\db\conditions\OrCondition » yii\db\conditions\ConjunctionCondition
实现yii\db\conditions\ConditionInterface
可用自版本2.0.14
源代码 https://github.com/yiisoft/yii2/blob/master/framework/db/conditions/OrCondition.php

Condition that connects two or more SQL expressions with the AND operator.

受保护的属性

隐藏继承的属性

属性类型描述定义在
$expressions mixed[] yii\db\conditions\ConjunctionCondition

公共方法

隐藏继承的方法

方法描述定义在
__construct() yii\db\conditions\ConjunctionCondition
fromArrayDefinition() Creates object by array-definition as described in Query Builder – Operator format guide article. yii\db\conditions\ConjunctionCondition
getExpressions() yii\db\conditions\ConjunctionCondition
getOperator() Returns the operator that is represented by this condition class, e.g. AND, OR. yii\db\conditions\OrCondition

方法详情

getOperator() public 方法

Returns the operator that is represented by this condition class, e.g. AND, OR.

public string getOperator ( )