HumHub Documentation (unofficial)

ExistsCondition
in package
implements ConditionInterface

Condition that represents `EXISTS` operator.

Tags
author

Dmytro Naumenko d.naumenko.a@gmail.com

since
2.0.14
phpcs:disable

Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore

Table of Contents

Interfaces

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

Properties

$operator  : string
$query  : Query

Methods

__construct()  : mixed
ExistsCondition constructor.
fromArrayDefinition()  : $this
Creates object by array-definition as described in [Query Builder – Operator format](guide:db-query-builder#operator-format) guide article.
getOperator()  : string
getQuery()  : Query

Properties

$operator

private string $operator

the operator to use (e.g. EXISTS or NOT EXISTS)

Methods

__construct()

ExistsCondition constructor.

public __construct(string $operator, Query $query) : mixed
Parameters
$operator : string

the operator to use (e.g. EXISTS or NOT EXISTS)

$query : Query

the [[Query]] object representing the sub-query.

fromArrayDefinition()

Creates object by array-definition as described in [Query Builder – Operator format](guide:db-query-builder#operator-format) guide article.

public static fromArrayDefinition(mixed $operator, mixed $operands) : $this
Parameters
$operator : mixed

operator in uppercase.

$operands : mixed

array of corresponding operands

Return values
$this

        
On this page

Search results