HumHub Documentation (unofficial)

HashCondition
in package
implements ConditionInterface

Condition based on column-value pairs.

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

$hash  : array<string|int, mixed>|null

Methods

__construct()  : mixed
HashCondition constructor.
fromArrayDefinition()  : $this
Creates object by array-definition as described in [Query Builder – Operator format](guide:db-query-builder#operator-format) guide article.
getHash()  : array<string|int, mixed>|null

Properties

$hash

private array<string|int, mixed>|null $hash

the condition specification.

Methods

__construct()

HashCondition constructor.

public __construct(array<string|int, mixed>|null $hash) : mixed
Parameters
$hash : array<string|int, mixed>|null

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

getHash()

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

        
On this page

Search results