HumHub Documentation (unofficial)

OrCondition extends ConjunctionCondition
in package

Condition that connects two or more SQL expressions with the `AND` operator.

Tags
author

Dmytro Naumenko d.naumenko.a@gmail.com

since
2.0.14

Table of Contents

Properties

$expressions  : array<string|int, mixed>

Methods

__construct()  : mixed
fromArrayDefinition()  : $this
Creates object by array-definition as described in [Query Builder – Operator format](guide:db-query-builder#operator-format) guide article.
getExpressions()  : array<string|int, mixed>
getOperator()  : string
Returns the operator that is represented by this condition class, e.g. `AND`, `OR`.

Properties

Methods

__construct()

public __construct(mixed $expressions) : mixed
Parameters
$expressions : mixed

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

getExpressions()

public getExpressions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOperator()

Returns the operator that is represented by this condition class, e.g. `AND`, `OR`.

public getOperator() : string
Return values
string

        
On this page

Search results