CRM_Contact_Selector_Custom
class CRM_Contact_Selector_Custom extends CRM_Contact_Selector
This class is used to retrieve and display a range of contacts that match the given criteria (specifically for results of advanced search options.
Constants
CACHE_SIZE |
|
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 | This defines two actions- View and Edit. | |
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 | |
array | $_formValues | FormValues is the array returned by exportValues called on the HTML_QuickForm_Controller for that page. | |
protected array | $_contextMenu | The contextMenu | from CRM_Contact_Selector |
array | $_params | Params is the array in a value used by the search query creator | |
protected array | $_returnProperties | The return properties used for search | from CRM_Contact_Selector |
protected int | $_action | Represent the type of selector | |
protected | $_searchContext | from CRM_Contact_Selector | |
protected | $_query | ||
protected int | $_ufGroupID | Group id | from CRM_Contact_Selector |
protected array | $_fields | The public visible fields to be shown to the user | |
protected object | $_search | The object that implements the search interface | |
protected | $_customSearchClass |
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
Get summary.
Get the query object for this selector.
Class constructor.
Getter for array of the parameters required for creating pager.
No description
Returns the column headers as an array of tuples.
Returns total number of rows for the query.
Returns all the rows in the given offset and rowCount.
Add actions.
Remove actions.
No description
called to rebuild prev next cache using full sql in case of core search ( excluding custom search)
Given the current formValues, gets the query in local language.
Name of export file.
Do nothing.
Generate contact ID query.
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 163
static
links()
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 394
null
getSummary()
Get summary.
in CRM_Contact_Selector at line 247
setKey($key)
This method set cache key, later used in test environment
in CRM_Core_Selector_Base at line 189
string
getKey()
in CRM_Contact_Selector at line 133
CRM_Contact_BAO_Query
getQueryObject()
Get the query object for this selector.
at line 119
CRM_Contact_Selector
__construct($customSearchClass, array $formValues = NULL, array $params = NULL, null $returnProperties = NULL, const|int $action = CRM_Core_Action::NONE, bool $includeContactIds = FALSE, bool $searchChildGroups = TRUE, string $searchContext = 'search', null $contextMenu = NULL)
Class constructor.
at line 207
getPagerParams(string $action, array $params)
Getter for array of the parameters required for creating pager.
in CRM_Contact_Selector at line 349
array
getColHeads(null $action = NULL, null $output = NULL)
at line 229
array
getColumnHeaders(string $action = NULL, string $output = NULL)
Returns the column headers as an array of tuples.
Keys are name, sortName, key to the sort array.
at line 263
int
getTotalCount(string $action)
Returns total number of rows for the query.
at line 284
int
getRows(string $action, int $offset, int $rowCount, string $sort, string $output = NULL)
Returns all the rows in the given offset and rowCount.
in CRM_Contact_Selector at line 864
string
buildPrevNextCache(CRM_Utils_Sort $sort)
at line 457
addActions($rows)
Add actions.
at line 484
removeActions($rows)
Remove actions.
in CRM_Contact_Selector at line 1022
fillupPrevNextCache(CRM_Utils_Sort $sort, string $cacheKey, int $start = 0, int $end = self::CACHE_SIZE)
in CRM_Contact_Selector at line 1086
rebuildPreNextCache(int $start, int $end, CRM_Utils_Sort $sort, string $cacheKey)
called to rebuild prev next cache using full sql in case of core search ( excluding custom search)
at line 385
getQILL()
Given the current formValues, gets the query in local language.
at line 407
string
getExportFileName(string $output = 'csv')
Name of export file.
in CRM_Contact_Selector at line 1191
CRM_Contact_BAO_Query
getQuery()
at line 416
CRM_Contact_DAO_Contact
alphabetQuery()
Do nothing.
at line 431
CRM_Contact_DAO_Contact
contactIDQuery(array $params, int $sortID, null $displayRelationshipType = NULL, string $queryOperator = 'AND')
Generate contact ID query.