CRM_Pledge_BAO_Query
extends CRM_Core_BAO_Query
in package
Tags
Table of Contents
Methods
- addCustomFormFields() : mixed
- buildSearchForm() : mixed
- Build the search for pledges.
- defaultReturnProperties() : array<string|int, mixed>|null
- Ideally this function should include fields that are displayed in the selector.
- extraReturnProperties() : array<string|int, mixed>|null
- This includes any extra fields that might need for export etc.
- from() : null|string
- From clause.
- getFields() : array<string|int, mixed>
- Get pledge fields.
- getPledgePaymentSearchFieldMetadata() : mixed
- Get the metadata for fields to be included on the grant search form.
- getSearchFieldMetadata() : mixed
- Get the metadata for fields to be included on the grant search form.
- qill() : string
- Getter for the qill object.
- searchAction() : mixed
- Possibly unnecessary function.
- select() : mixed
- Build select for Pledge.
- tableNames() : mixed
- where() : mixed
- whereClauseSingle() : mixed
- Get where clause for field.
- getFieldName() : string
- Get the name of the field.
- getLegacySupportedFields() : array<string|int, mixed>
- Get legacy fields which we still maybe support.
Methods
addCustomFormFields()
public
static addCustomFormFields(CRM_Core_Form &$form, array<string|int, mixed> $extends) : mixed
Parameters
- $form : CRM_Core_Form
- $extends : array<string|int, mixed>
buildSearchForm()
Build the search for pledges.
public
static buildSearchForm(CRM_Pledge_Form_Search|CRM_Contact_Form_Search_Advanced &$form) : mixed
Parameters
Tags
defaultReturnProperties()
Ideally this function should include fields that are displayed in the selector.
public
static defaultReturnProperties(int $mode[, bool $includeCustomFields = TRUE ]) : array<string|int, mixed>|null
Parameters
- $mode : int
- $includeCustomFields : bool = TRUE
Return values
array<string|int, mixed>|nullextraReturnProperties()
This includes any extra fields that might need for export etc.
public
static extraReturnProperties(string $mode) : array<string|int, mixed>|null
Parameters
- $mode : string
Return values
array<string|int, mixed>|nullfrom()
From clause.
public
static from(string $name, string $mode, string $side) : null|string
Parameters
- $name : string
- $mode : string
- $side : string
Return values
null|stringgetFields()
Get pledge fields.
public
static getFields([bool $checkPermission = TRUE ]) : array<string|int, mixed>
Parameters
- $checkPermission : bool = TRUE
Return values
array<string|int, mixed>getPledgePaymentSearchFieldMetadata()
Get the metadata for fields to be included on the grant search form.
public
static getPledgePaymentSearchFieldMetadata() : mixed
Tags
getSearchFieldMetadata()
Get the metadata for fields to be included on the grant search form.
public
static getSearchFieldMetadata() : mixed
Tags
qill()
Getter for the qill object.
public
qill() : string
Return values
stringsearchAction()
Possibly unnecessary function.
public
static searchAction(mixed &$row, int $id) : mixed
Parameters
- $row : mixed
- $id : int
select()
Build select for Pledge.
public
static select(CRM_Contact_BAO_Query &$query) : mixed
Parameters
- $query : CRM_Contact_BAO_Query
tableNames()
public
static tableNames(mixed &$tables) : mixed
Parameters
- $tables : mixed
where()
public
static where(mixed &$query) : mixed
Parameters
- $query : mixed
whereClauseSingle()
Get where clause for field.
public
static whereClauseSingle(array<string|int, mixed> &$values, CRM_Contact_BAO_Query &$query) : mixed
Parameters
- $values : array<string|int, mixed>
- $query : CRM_Contact_BAO_Query
Tags
getFieldName()
Get the name of the field.
protected
static getFieldName(array<string|int, mixed> $values) : string
Parameters
- $values : array<string|int, mixed>
Return values
stringgetLegacySupportedFields()
Get legacy fields which we still maybe support.
protected
static getLegacySupportedFields() : array<string|int, mixed>
These are contribution specific but I think it's ok to have one list of legacy supported params in a central place.