BP_Recursive_Query::get_sql_for_clause( array $clause, array $parent_query )

Generate JOIN and WHERE clauses for a first-order clause.


Description Description

Must be overridden in a subclass.


Parameters Parameters

$clause

(Required) Array of arguments belonging to the clause.

$parent_query

(Required) Parent query to which the clause belongs.


Top ↑

Return Return

(array)

  • 'join'
    (array) Array of subclauses for the JOIN statement.
  • 'where'
    (array) Array of subclauses for the WHERE statement.


Top ↑

Source Source

File: bp-core/classes/class-bp-recursive-query.php

	abstract protected function get_sql_for_clause( $clause, $parent_query );

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.