Elgg  Version master
Public Member Functions | List of all members
Elgg\Database\Clauses\ComparisonClause Class Reference

Utility class for building composite comparison expression. More...

Inheritance diagram for Elgg\Database\Clauses\ComparisonClause:
Elgg\Database\Clauses\Clause

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...
 

Detailed Description

Utility class for building composite comparison expression.

Definition at line 12 of file ComparisonClause.php.

Constructor & Destructor Documentation

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.

Parameters
string$xComparison value (e.g. prefixed column name)
string$comparisonComparison operator
mixed$yValue to compare against
string$typeValue type for sanitization/casting
bool$case_sensitiveUse case sensitive comparison for strings

Definition at line 23 of file ComparisonClause.php.

Member Function Documentation

Elgg\Database\Clauses\ComparisonClause::prepare ( QueryBuilder  $qb,
  $table_alias = null 
)

{}

Exceptions
DomainException

Definition at line 37 of file ComparisonClause.php.


The documentation for this class was generated from the following file: