Elgg
Version 6.1
|
Utility class for building composite comparison expression. More...
Public Member Functions | |
__construct (public string $x, public string $comparison, public mixed $y=null, public?string $type=null, public?bool $case_sensitive=null) | |
Constructor. More... | |
prepare (QueryBuilder $qb, $table_alias=null) | |
{} More... | |
Public Member Functions inherited from Elgg\Database\Clauses\Clause | |
prepare (QueryBuilder $qb, $table_alias=null) | |
Build an expression and/or apply it to an instance of query builder. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Elgg\Database\Clauses\Clause | |
isCallable ($callback) | |
Check if a clause expression is callable. More... | |
call ($callback, QueryBuilder $qb, $table_alias=null) | |
Call the expression for the clause. More... | |
callJoin ($callback, QueryBuilder $qb, $joined_alias, $table_alias=null) | |
Call the expression for a join clause. More... | |
Utility class for building composite comparison expression.
Definition at line 12 of file ComparisonClause.php.
Elgg\Database\Clauses\ComparisonClause::__construct | ( | public string | $x, |
public string | $comparison, | ||
public mixed | $y = null , |
||
public?string | $type = null , |
||
public?bool | $case_sensitive = null |
||
) |
Constructor.
string | $x | Comparison value (e.g. prefixed column name) |
string | $comparison | Comparison operator |
mixed | $y | Value to compare against |
string | $type | Value type for sanitization/casting |
bool | $case_sensitive | Use case sensitive comparison for strings |
Definition at line 23 of file ComparisonClause.php.
Elgg\Database\Clauses\ComparisonClause::prepare | ( | QueryBuilder | $qb, |
$table_alias = null |
|||
) |