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> = []
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
stringadd()
Adds an expression to composite expression.
public
add(mixed $part) : self
Parameters
- $part : mixed
Return values
selfaddMultiple()
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
selfand()
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
selfcount()
Retrieves the amount of expressions on composite expression.
public
count() : int
Return values
intgetType()
Returns the type of this composite expression (AND/OR).
public
getType() : string
Return values
stringor()
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
selfwith()
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