没有命名空间的类 yii yii\base yii\behaviors yii\caching yii\captcha yii\console yii\console\controllers yii\console\widgets yii\data yii\db yii\db\conditions yii\db\cubrid yii\db\cubrid\conditions yii\db\mssql yii\db\mssql\conditions yii\db\mysql yii\db\oci yii\db\oci\conditions yii\db\pgsql yii\db\sqlite yii\db\sqlite\conditions yii\di yii\filters yii\filters\auth yii\grid yii\helpers yii\i18n yii\log yii\mail yii\mutex yii\rbac yii\rest yii\test yii\validators yii\web yii\widgets

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/yiichina/yii2/blob/api/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 mixed[] $expressions null

方法详情

__construct() 公共 方法

public void __construct($expressions)
$expressions mixed
fromArrayDefinition() 公共 静态 方法

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 mixed[] getExpressions()
getOperator() 公共 抽象 方法

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

public abstract string getOperator()