yii\db\conditions\ConditionInterface - Yii2 类参考手册

Interface yii\db\conditions\ConditionInterface

Extendsyii\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
Available since version2.0.14

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

Public Methods

隐藏继承的方法 Hide inherited methods

方法 Method简介 Description定义在 Defined By
fromArrayDefinition() Creates object by array-definition as described in Query Builder – Operator format guide article. yii\db\conditions\ConditionInterface

方法详情 Method Details

fromArrayDefinition() public abstract static method

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