Elgg  Version 6.2
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Elgg\Database\Clauses\EntityWhereClause Class Reference

Builds queries for filtering entities by their properties in the entities table. More...

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

Public Member Functions

 prepare (QueryBuilder $qb, $table_alias='')
 {{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...
 

Static Public Member Functions

static factory (QueryOptions $options)
 Build new clause from options. More...
 

Public Attributes

 $guids
 
 $owner_guids
 
 $container_guids
 
 $type_subtype_pairs
 
 $access_ids
 
 $created_after
 
 $created_before
 
 $updated_after
 
 $updated_before
 
 $last_action_after
 
 $last_action_before
 
 $enabled
 
 $deleted
 
 $ignore_access
 
 $use_enabled_clause
 
 $use_deleted_clause
 
 $viewer_guid
 
- Public Attributes inherited from Elgg\Database\Clauses\WhereClause
 $expr
 

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

Builds queries for filtering entities by their properties in the entities table.

Definition at line 11 of file EntityWhereClause.php.

Member Function Documentation

◆ factory()

static Elgg\Database\Clauses\EntityWhereClause::factory ( QueryOptions  $options)
static

Build new clause from options.

Parameters
QueryOptions$optionsOptions
Returns
static

Definition at line 140 of file EntityWhereClause.php.

◆ prepare()

Elgg\Database\Clauses\EntityWhereClause::prepare ( QueryBuilder  $qb,
  $table_alias = '' 
)

{{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
}}

Reimplemented from Elgg\Database\Clauses\WhereClause.

Definition at line 101 of file EntityWhereClause.php.

Member Data Documentation

◆ $access_ids

Elgg\Database\Clauses\EntityWhereClause::$access_ids

Definition at line 36 of file EntityWhereClause.php.

◆ $container_guids

Elgg\Database\Clauses\EntityWhereClause::$container_guids

Definition at line 26 of file EntityWhereClause.php.

◆ $created_after

Elgg\Database\Clauses\EntityWhereClause::$created_after

Definition at line 41 of file EntityWhereClause.php.

◆ $created_before

Elgg\Database\Clauses\EntityWhereClause::$created_before

Definition at line 46 of file EntityWhereClause.php.

◆ $deleted

Elgg\Database\Clauses\EntityWhereClause::$deleted

Definition at line 76 of file EntityWhereClause.php.

◆ $enabled

Elgg\Database\Clauses\EntityWhereClause::$enabled

Definition at line 71 of file EntityWhereClause.php.

◆ $guids

Elgg\Database\Clauses\EntityWhereClause::$guids

Definition at line 16 of file EntityWhereClause.php.

◆ $ignore_access

Elgg\Database\Clauses\EntityWhereClause::$ignore_access

Definition at line 81 of file EntityWhereClause.php.

◆ $last_action_after

Elgg\Database\Clauses\EntityWhereClause::$last_action_after

Definition at line 61 of file EntityWhereClause.php.

◆ $last_action_before

Elgg\Database\Clauses\EntityWhereClause::$last_action_before

Definition at line 66 of file EntityWhereClause.php.

◆ $owner_guids

Elgg\Database\Clauses\EntityWhereClause::$owner_guids

Definition at line 21 of file EntityWhereClause.php.

◆ $type_subtype_pairs

Elgg\Database\Clauses\EntityWhereClause::$type_subtype_pairs

Definition at line 31 of file EntityWhereClause.php.

◆ $updated_after

Elgg\Database\Clauses\EntityWhereClause::$updated_after

Definition at line 51 of file EntityWhereClause.php.

◆ $updated_before

Elgg\Database\Clauses\EntityWhereClause::$updated_before

Definition at line 56 of file EntityWhereClause.php.

◆ $use_deleted_clause

Elgg\Database\Clauses\EntityWhereClause::$use_deleted_clause

Definition at line 91 of file EntityWhereClause.php.

◆ $use_enabled_clause

Elgg\Database\Clauses\EntityWhereClause::$use_enabled_clause

Definition at line 86 of file EntityWhereClause.php.

◆ $viewer_guid

Elgg\Database\Clauses\EntityWhereClause::$viewer_guid

Definition at line 96 of file EntityWhereClause.php.


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