PdbCompoundCondition
in package
implements
PdbConditionInterface
Table of Contents
Interfaces
Constants
- AND : mixed = 'AND'
- COMPOUNDS : mixed = [self::OR, self::AND, self::XOR]
- NOT : mixed = 'NOT'
- NOT_OR : mixed = 'NOT OR'
- OPERATORS : mixed = [self::NOT, self::NOT_OR, self::OR, self::AND,...
- OR : mixed = 'OR'
- XOR : mixed = 'XOR'
Properties
- $compound : string
- $conditions : array<string|int, PdbConditionInterface>
Methods
- __construct() : mixed
- Create a condition.
- __toString() : mixed
- build() : string
- Build an appropriate SQL clause for this condition.
- getPreviewSql() : string
- validate() : void
- Validate this condition.
Constants
AND
public
mixed
AND
= 'AND'
COMPOUNDS
public
mixed
COMPOUNDS
= [self::OR, self::AND, self::XOR]
NOT
public
mixed
NOT
= 'NOT'
NOT_OR
public
mixed
NOT_OR
= 'NOT OR'
OPERATORS
public
mixed
OPERATORS
= [self::NOT, self::NOT_OR, self::OR, self::AND, self::XOR]
OR
public
mixed
OR
= 'OR'
XOR
public
mixed
XOR
= 'XOR'
Properties
$compound
public
string
$compound
$conditions
public
array<string|int, PdbConditionInterface>
$conditions
= []
Methods
__construct()
Create a condition.
public
__construct(string $compound, array<string|int, PdbConditionInterface> $conditions) : mixed
Parameters
- $compound : string
- $conditions : array<string|int, PdbConditionInterface>
__toString()
public
__toString() : mixed
Tags
build()
Build an appropriate SQL clause for this condition.
public
build(Pdb $pdb, array<string|int, mixed> &$values) : string
Parameters
- $pdb : Pdb
- $values : array<string|int, mixed>
Tags
Return values
stringgetPreviewSql()
public
getPreviewSql() : string
Tags
Return values
stringvalidate()
Validate this condition.
public
validate() : void