Elgg  Version 3.0
Public Member Functions | Public Attributes | List of all members
Elgg\Database\Clauses\TypeSubtypeWhereClause Class Reference

Builds clauses for filtering entities by their type and subtype. More...

Inheritance diagram for Elgg\Database\Clauses\TypeSubtypeWhereClause:
Elgg\Database\Clauses\WhereClause Elgg\Database\Clauses\Clause

Public Member Functions

 prepare (QueryBuilder $qb, $table_alias=null)
 {Build an expression and/or apply it to an instance of query builder.
Parameters
QueryBuilder$qbQuery builder
string$table_aliasTable alias
Returns
CompositeExpression|null|string
} More...
 
- Public Member Functions inherited from Elgg\Database\Clauses\WhereClause
 __construct ($expr=null)
 Constructor. More...
 
 prepare (QueryBuilder $qb, $table_alias=null)
 {Build an expression and/or apply it to an instance of query builder.
Parameters
QueryBuilder$qbQuery builder
string$table_aliasTable alias
Returns
CompositeExpression|null|string
} More...
 

Public Attributes

 $type_column = 'type'
 
 $subtype_column = 'subtype'
 
 $type_subtype_pairs = []
 
- Public Attributes inherited from Elgg\Database\Clauses\WhereClause
 $expr
 

Detailed Description

Builds clauses for filtering entities by their type and subtype.

Definition at line 10 of file TypeSubtypeWhereClause.php.

Member Function Documentation

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

{Build an expression and/or apply it to an instance of query builder.

Parameters
QueryBuilder$qbQuery builder
string$table_aliasTable alias
Returns
CompositeExpression|null|string
}

Implements Elgg\Database\Clauses\Clause.

Definition at line 30 of file TypeSubtypeWhereClause.php.

Member Data Documentation

Elgg\Database\Clauses\TypeSubtypeWhereClause::$subtype_column = 'subtype'

Definition at line 20 of file TypeSubtypeWhereClause.php.

Elgg\Database\Clauses\TypeSubtypeWhereClause::$type_column = 'type'

Definition at line 15 of file TypeSubtypeWhereClause.php.

Elgg\Database\Clauses\TypeSubtypeWhereClause::$type_subtype_pairs = []

Definition at line 25 of file TypeSubtypeWhereClause.php.


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