Elgg  Version master
Public Member Functions | Public Attributes | 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 ($x, $comparison, $y=null, $type=null, $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...
 

Public Attributes

 $x
 
 $comparison
 
 $y
 
 $type
 
 $case_sensitive
 

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 (   $x,
  $comparison,
  $y = null,
  $type = null,
  $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 48 of file ComparisonClause.php.

Member Function Documentation

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

{}

Exceptions
InvalidParameterException

Definition at line 61 of file ComparisonClause.php.

Member Data Documentation

Elgg\Database\Clauses\ComparisonClause::$case_sensitive

Definition at line 37 of file ComparisonClause.php.

Elgg\Database\Clauses\ComparisonClause::$comparison

Definition at line 22 of file ComparisonClause.php.

Elgg\Database\Clauses\ComparisonClause::$type

Definition at line 32 of file ComparisonClause.php.

Elgg\Database\Clauses\ComparisonClause::$x

Definition at line 17 of file ComparisonClause.php.

Elgg\Database\Clauses\ComparisonClause::$y

Definition at line 27 of file ComparisonClause.php.


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