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.
add()  : self
Adds an expression to composite expression.
addMultiple()  : self
Adds multiple parts to 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<string|int, string>|array<string|int, self> $parts = [] ]) : mixed
Parameters
$type : string
$parts : array<string|int, string>|array<string|int, self> = []
Internal

Use the and() / or() factory methods.

__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

add()

Adds an expression to composite expression.

public add(mixed $part) : self
Parameters
$part : mixed
Return values
self

addMultiple()

Adds multiple parts to composite expression.

public addMultiple([array<string|int, string>|array<string|int, self> $parts = [] ]) : self
Parameters
$parts : array<string|int, string>|array<string|int, self> = []
Return values
self

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

Search results