yii\db\conditions\ConjunctionCondition - Yii2 类参考手册
Abstract Class yii\db\conditions\ConjunctionCondition
| Inheritance | yii\db\conditions\ConjunctionCondition |
|---|---|
| Implements | yii\db\conditions\ConditionInterface |
| Subclasses | yii\db\conditions\AndCondition, yii\db\conditions\OrCondition |
| Available since version | 2.0.14 |
Class ConjunctionCondition
Protected Properties
隐藏继承的属性 Hide inherited properties
| 属性Property | 类型 Type | 简介 Description | 定义在 Defined By |
|---|---|---|---|
| $expressions | mixed[] | yii\db\conditions\ConjunctionCondition |
Public Methods
隐藏继承的方法 Hide inherited methods
| 方法 Method | 简介 Description | 定义在 Defined By |
|---|---|---|
| __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 |
属性详情 Property Details
方法详情 Method Details
| public void __construct ( $expressions ) | ||
| $expressions | mixed | |
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 |
|---|---|---|
| public mixed[] getExpressions ( ) |
Returns the operator that is represented by this condition class, e.g. AND, OR.
| public abstract string getOperator ( ) |