class CRM_Grant_BAO_Query extends CRM_Core_BAO_Query

Methods

static 
addCustomFormFields(CRM_Core_Form $form, array $extends)

No description

static array
getLegacySupportedFields()

Get legacy fields which we still maybe support.

string
qill()

Getter for the qill object.

static 
searchAction($row, int $id)

Possibly unnecessary function.

static 
tableNames($tables)

No description

static string
getFieldName(array $values)

Get the name of the field.

static array
getFields()

No description

static void
select($query)

Build select for CiviGrant.

static void
where($query)

Given a list of conditions in params generate the required.

static 
whereClauseSingle($values, CRM_Contact_BAO_Query $query)

No description

static null|string
from(string $name, $mode, $side)

No description

static array|null
defaultReturnProperties($mode, bool $includeCustomFields = TRUE)

No description

static 
getSearchFieldMetadata()

Get the metadata for fields to be included on the grant search form.

static 
getTemplateHandlableSearchFields()

Transitional function for specifying which fields the tpl can iterate through.

static void
buildSearchForm(CRM_Grant_Form_Search $form)

Add all the elements shared between grant search and advanaced search.

Details

in CRM_Core_BAO_Query at line 41
static addCustomFormFields(CRM_Core_Form $form, array $extends)

Parameters

CRM_Core_Form $form
array $extends

in CRM_Core_BAO_Query at line 69
static protected array getLegacySupportedFields()

Get legacy fields which we still maybe support.

These are contribution specific but I think it's ok to have one list of legacy supported params in a central place.

Return Value

array

in CRM_Core_BAO_Query at line 87
string qill()

Getter for the qill object.

Return Value

string

in CRM_Core_BAO_Query at line 97
static searchAction($row, int $id)

Possibly unnecessary function.

Parameters

$row
int $id

in CRM_Core_BAO_Query at line 102
static tableNames($tables)

Parameters

$tables

in CRM_Core_BAO_Query at line 111
static protected string getFieldName(array $values)

Get the name of the field.

Parameters

array $values

Return Value

string

at line 40
static array getFields()

Return Value

array

at line 53
static void select($query)

Build select for CiviGrant.

Parameters

$query

Return Value

void

at line 110
static void where($query)

Given a list of conditions in params generate the required.

where clause

Parameters

$query

Return Value

void

at line 126
static whereClauseSingle($values, CRM_Contact_BAO_Query $query)

Parameters

$values
CRM_Contact_BAO_Query $query

at line 239
static null|string from(string $name, $mode, $side)

Parameters

string $name
$mode
$side

Return Value

null|string

at line 275
static array|null defaultReturnProperties($mode, bool $includeCustomFields = TRUE)

Parameters

$mode
bool $includeCustomFields

Return Value

array|null

at line 302
static getSearchFieldMetadata()

Get the metadata for fields to be included on the grant search form.

at line 317
static getTemplateHandlableSearchFields()

Transitional function for specifying which fields the tpl can iterate through.

at line 329
static void buildSearchForm(CRM_Grant_Form_Search $form)

Add all the elements shared between grant search and advanaced search.

Parameters

CRM_Grant_Form_Search $form

Return Value

void