A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.yiiframework.com/doc/api/2.0/yii-db-conditions-existscondition below:

ExistsCondition, yii\db\conditions\ExistsCondition | API Documentation for Yii 2.0

Class yii\db\conditions\ExistsCondition

Condition that represents EXISTS operator.

Method Details

Hide inherited methods

ExistsCondition constructor.

Source code

                public function __construct($operator, $query)
{
    $this->operator = $operator;
    $this->query = $query;
}

            

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

Source code

                public static function fromArrayDefinition($operator, $operands)
{
    if (!isset($operands[0]) || !$operands[0] instanceof Query) {
        throw new InvalidArgumentException('Subquery for EXISTS operator must be a Query object.');
    }
    return new static($operator, $operands[0]);
}

            

Source code

                public function getOperator()
{
    return $this->operator;
}

            

Source code

                public function getQuery()
{
    return $this->query;
}

            

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4