Elgg
Version 6.2
|
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) | |||||||
{Build an expression and/or apply it to an instance of query builder.
| |||||||
Additional Inherited Members | |
![]() | |
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 |
|||
) |
{Build an expression and/or apply it to an instance of query builder.
QueryBuilder | $qb | Query builder |
string | $table_alias | Table alias |
DomainException |
Reimplemented from Elgg\Database\Clauses\Clause.
Definition at line 37 of file ComparisonClause.php.