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<string|int, string>|array<string|int, self> $parts = [] ][, bool $isOuter = false ]) : mixed
Parameters
- $type : string
- $parts : array<string|int, string>|array<string|int, self> = []
- $isOuter : bool = false
Use factory methods and()
or or()
methods instead. Signature will change along with doctrine/dbal 4.
__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
stringand()
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