class CRM_Core_BAO_CustomQuery

Constants

PREFIX

Properties

protected array $_ids The set of custom field ids.
array $_select The select clause.
array $_element The name of the elements that are in the select clause.
array $_tables The tables involved in the query.
$_whereTables
array $_where The where clause.
array $_qill The english language version of the query.
array $_options
array $_fields The custom fields information.
protected boolean $_contactSearch Searching for contacts?
protected $_locationSpecificCustomFields
static array $extendsMap This stores custom data group types and tables that it extends.

Methods

__construct(array $ids, bool $contactSearch = FALSE, array $locationSpecificFields = array())

Class constructor.

select()

Generate the select clause and the associated tables.

where()

Generate the where clause and also the english language equivalent.

array
query()

Function that does the actual query generation.

Details

at line 143
__construct(array $ids, bool $contactSearch = FALSE, array $locationSpecificFields = array())

Class constructor.

Takes in a set of custom field ids andsets up the data structures to generate a query

Parameters

array $ids The set of custom field ids.
bool $contactSearch
array $locationSpecificFields

at line 225
select()

Generate the select clause and the associated tables.

at line 287
where()

Generate the where clause and also the english language equivalent.

at line 467
array query()

Function that does the actual query generation.

basically ties all the above functions together

Return Value

array array of strings