yii\db\conditions\NotCondition - Yii2 类参考手册
Class yii\db\conditions\NotCondition
全部
| 方法 Methods
Inheritance | yii\db\conditions\NotCondition |
---|---|
Implements | yii\db\conditions\ConditionInterface |
Available since version | 2.0.14 |
Condition that inverts passed \yii\db\conditions\condition.
Public Methods
隐藏继承的方法 Hide inherited methods
方法 Method | 简介 Description | 定义在 Defined By |
---|---|---|
__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 |
方法详情 Method Details
NotCondition constructor.
public void __construct ( $condition ) | ||
$condition | mixed | The condition to be negated |
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. |
---|
public mixed getCondition ( ) |