HumHub Documentation (unofficial)

ConditionInterface extends ExpressionInterface

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

Tags
author

Dmytro Naumenko d.naumenko.a@gmail.com

since
2.0.14

Table of Contents

Methods

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

Methods

fromArrayDefinition()

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

public static fromArrayDefinition(string $operator, array<string|int, mixed> $operands) : $this
Parameters
$operator : string

operator in uppercase.

$operands : array<string|int, mixed>

array of corresponding operands

Tags
throws
InvalidParamException

if input parameters are not suitable for this condition

Return values
$this

        
On this page

Search results