Class yii\db\conditions\NotCondition

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

Condition that inverts passed condition.

公共方法

隐藏继承的方法

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

方法详情

__construct() public 方法

NotCondition constructor.

public void __construct ( $condition )
$condition mixed

The condition to be negated

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\InvalidArgumentException

if wrong number of operands have been given.

getCondition() public 方法

public mixed getCondition ( )