CRM_Contribute_Selector_Search
class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements CRM_Core_Selector_API
Class to render contribution search results.
Properties
protected array | $_order | The sort order which is computed from the columnHeaders | from CRM_Core_Selector_Base |
protected string | $_permission | The permission mask for this selector | from CRM_Core_Selector_Base |
protected string | $_key | The qfKey of the underlying search | from CRM_Core_Selector_Base |
static array | $_links | Array of action links. | |
static array | $_columnHeaders | We use desc to remind us what that column is, name is used in the tpl | |
static array | $_properties | Properties of contact we're interested in displaying | |
protected bool | $_single | Are we restricting ourselves to a single contact | |
protected bool | $_limit | Are we restricting ourselves to a single contact | |
protected string | $_context | What context are we being invoked from | |
protected string | $_compContext | What component context are we being invoked from | |
array | $_queryParams | QueryParams is the array returned by exportValues called on the HTML_QuickForm_Controller for that page. | |
protected int | $_action | Represent the type of selector | |
protected string | $_contributionClause | The additional clause that we restrict the search with | |
protected string | $_query | The query object | |
protected | $_includeSoftCredits |
Methods
This function gets the attribute for the action that.
This method returns the links that are given for each search row.
Compose the template file name from the class name.
Getter for the sorting direction for the fields which will be displayed on the form.
Get the display text in plain language for the search to display on the results page
No description
Class constructor.
Getter for array of the parameters required for creating pager.
Returns total number of rows for the query.
Returns all the rows in the given offset and rowCount.
No description
Returns the column headers as an array of tuples: (name, sortName (key to the sort array))
No description
No description
Name of export file.
Details
in CRM_Core_Selector_Base at line 72
string
getActionAttribute(string $match, string $attribute = 'name')
This function gets the attribute for the action that.
it matches.
at line 217
static
links(int $componentId = NULL, null $componentAction = NULL, null $key = NULL, null $compContext = NULL)
This method returns the links that are given for each search row.
currently the links added for each row are
- View
- Edit
in CRM_Core_Selector_Base at line 108
string
getTemplateFileName(string $action = NULL)
Compose the template file name from the class name.
in CRM_Core_Selector_Base at line 120
array
getSortOrder(string $action)
Getter for the sorting direction for the fields which will be displayed on the form.
in CRM_Core_Selector_Base at line 154
setPermission($permission)
Setter for permission.
in CRM_Core_Selector_Base at line 168
array
getQill()
Get the display text in plain language for the search to display on the results page
FIXME: the current internationalisation is bad, but should more or less work on most of "European" languages
at line 649
null
getSummary()
in CRM_Core_Selector_Base at line 182
setKey($key)
in CRM_Core_Selector_Base at line 189
string
getKey()
at line 160
CRM_Contribute_Selector_Search
__construct(array $queryParams, const|int $action = CRM_Core_Action::NONE, string $contributionClause = NULL, bool $single = FALSE, int $limit = NULL, string $context = 'search', null $compContext = NULL)
Class constructor.
at line 260
getPagerParams(string $action, array $params)
Getter for array of the parameters required for creating pager.
at line 282
int
getTotalCount(string $action)
Returns total number of rows for the query.
at line 308
int
getRows(string $action, int $offset, int $rowCount, string $sort, string $output = NULL)
Returns all the rows in the given offset and rowCount.
at line 491
getQILL()
at line 507
array
getColumnHeaders(string $action = NULL, string $output = NULL)
Returns the column headers as an array of tuples: (name, sortName (key to the sort array))
at line 622
mixed
alphabetQuery()
at line 629
string
getQuery()
at line 642
string
getExportFileName(string $output = 'csv')
Name of export file.