Abstract Class yii\db\conditions\ConjunctionCondition

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

Class ConjunctionCondition

受保护的属性

隐藏继承的属性

属性类型描述定义在
$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\ConjunctionCondition

属性详情

$expressions protected 属性
protected mixed[] $expressions null

方法详情

__construct() public 方法

public void __construct ( $expressions )
$expressions mixed
fromArrayDefinition() public static 方法

Creates object by array-definition as described in Query Builder – Operator format guide article.

public static $this fromArrayDefinition ( $operator, $operands )
$operator string

Operator in uppercase.

$operands array

Array of corresponding operands

throws yii\base\InvalidParamException

if input parameters are not suitable for this condition

getExpressions() public 方法

public mixed[] getExpressions ( )
getOperator() public abstract 方法

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

public abstract string getOperator ( )