[ Index ]

PHP Cross Reference of BuddyPress




/src/bp-activity/classes/ -> class-bp-activity-query.php (summary)

BuddyPress Activity Classes

File Size: 247 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BP_Activity_Query:: (5 methods):

Class: BP_Activity_Query  - X-Ref

Class for generating the WHERE SQL clause for advanced activity fetching.

This is notably used in {@link BP_Activity_Activity::get()} with the
'filter_query' parameter.

__construct( $query = array()   X-Ref

param: array $query {
since: 2.2.0

get_sql( $alias = 'a' )   X-Ref
Generates WHERE SQL clause to be appended to a main query.

return: string SQL fragment to append to the main WHERE clause.
param: string $alias An existing table alias that is compatible with the current query clause.
since: 2.2.0

get_sql_for_clause( $clause, $parent_query )   X-Ref
Generate WHERE clauses for a first-order clause.

return: array {
param: array $clause       Array of arguments belonging to the clause.
param: array $parent_query Parent query to which the clause belongs.
since: 2.2.0

is_first_order_clause( $query )   X-Ref
Determine whether a clause is first-order.

return: bool
param: array $query Clause to check.
since: 2.2.0

validate_column( $column = '' )   X-Ref
Validates a column name parameter.

Column names are checked against a list of known tables.
See {@link BP_Activity_Query::db_tables}.

return: string A validated column name value.
param: string $column The user-supplied column name.
since: 2.2.0

Generated: Thu Jun 13 01:00:57 2024 Cross-referenced by PHPXref 0.7.1