HumHub Documentation (unofficial)

NotCondition
in package
implements ConditionInterface

Condition that inverts passed [[condition]].

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

$condition  : mixed

Methods

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

Properties

$condition

private mixed $condition

the condition to be negated

Methods

__construct()

NotCondition constructor.

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

the condition to be negated

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

Tags
throws
InvalidArgumentException

if wrong number of operands have been given.

Return values
$this

        
On this page

Search results