Interface yii\db\conditions\ConditionInterface

扩展yii\db\ExpressionInterface
Implemented byyii\db\conditions\AndCondition, yii\db\conditions\BetweenColumnsCondition, yii\db\conditions\BetweenCondition, yii\db\conditions\ConjunctionCondition, yii\db\conditions\ExistsCondition, yii\db\conditions\HashCondition, yii\db\conditions\InCondition, yii\db\conditions\LikeCondition, yii\db\conditions\NotCondition, yii\db\conditions\OrCondition, yii\db\conditions\SimpleCondition
可用自版本2.0.14
源代码 https://github.com/yiisoft/yii2/blob/master/framework/db/conditions/ConditionInterface.php

Interface ConditionInterface should be implemented by classes that represent a condition in DBAL of framework.

公共方法

隐藏继承的方法

方法描述定义在
fromArrayDefinition() Creates object by array-definition as described in Query Builder – Operator format guide article. yii\db\conditions\ConditionInterface

方法详情

fromArrayDefinition() public abstract static 方法

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

public abstract 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