CompositeExpression

class \TYPO3\CMS\Core\Database\Query\Expression\CompositeExpression

Extends
CompositeExpression

Facade of the Doctrine DBAL CompositeExpression to have all Query related classes with in TYPO3\CMS namespace.

Table of Contents

Methods

__construct()  : mixed
__toString()  : string
Retrieves the string representation of this composite expression.
and()  : self
count()  : int
Retrieves the amount of expressions on composite expression.
getType()  : string
Returns the type of this composite expression (AND/OR).
or()  : self
with()  : self
Returns a new CompositeExpression with the given parts added.

Methods

__construct()

public __construct(string $type[, array<int, self|CompositeExpression|string|null> $parts = [] ][, bool $isOuter = false ]) : mixed

Parameters

$type : string
$parts : array<int, self|CompositeExpression|string|null> = []
$isOuter : bool = false

__toString()

Retrieves the string representation of this composite expression.

public __toString() : string

If expression is empty, just return an empty string. Native Doctrine expression would return () instead.

Return values

string

and()

public static and([self|string|null $part = null ], self|string|null ...$parts) : self

Parameters

$part : self|string|null = null
$parts : self|string|null

Return values

self

count()

Retrieves the amount of expressions on composite expression.

public count() : int

Return values

int

getType()

Returns the type of this composite expression (AND/OR).

public getType() : string

Return values

string

or()

public static or([self|string|null $part = null ], self|string|null ...$parts) : self

Parameters

$part : self|string|null = null
$parts : self|string|null

Return values

self

with()

Returns a new CompositeExpression with the given parts added.

public with([self|string|null $part = null ], self|string|null ...$parts) : self

Parameters

$part : self|string|null = null
$parts : self|string|null

Return values

self
On this page