yii\db\conditions\ExistsCondition - Yii2 类参考手册
Class yii\db\conditions\ExistsCondition
全部
| 方法 Methods
Inheritance | yii\db\conditions\ExistsCondition |
---|---|
Implements | yii\db\conditions\ConditionInterface |
Available since version | 2.0.14 |
Condition that represents EXISTS
operator.
Public Methods
隐藏继承的方法 Hide inherited methods
方法 Method | 简介 Description | 定义在 Defined By |
---|---|---|
__construct() | ExistsCondition constructor. | yii\db\conditions\ExistsCondition |
fromArrayDefinition() | Creates object by array-definition as described in Query Builder – Operator format guide article. | yii\db\conditions\ExistsCondition |
getOperator() | yii\db\conditions\ExistsCondition | |
getQuery() | yii\db\conditions\ExistsCondition |
方法详情 Method Details
ExistsCondition constructor.
public void __construct ( $operator, $query ) | ||
$operator | string | The operator to use (e.g. |
$query | yii\db\Query | The yii\db\Query object representing the sub-query. |
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 string getOperator ( ) |
public yii\db\Query getQuery ( ) |