CRM_Contact_Selector
class CRM_Contact_Selector extends CRM_Core_Selector_Base implements CRM_Core_Selector_API
Class is to retrieve and display a range of contacts that match the given criteria.
It is 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 | |
array | $_params | Params is the array in a value used by the search query creator | |
protected array | $_returnProperties | The return properties used for search | |
protected int | $_action | Represent the type of selector | |
protected | $_searchContext | ||
protected CRM_Contact_BAO_Query | $_query | Query object for this selector. | |
protected int | $_ufGroupID | Group id | |
protected array | $_fields | The public visible fields to be shown to the user |
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
This method set cache key, later used in test environment
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: (name, sortName (key to the sort array))
Returns total number of rows for the query.
Returns all the rows in the given offset and rowCount.
No description
No description
No description
called to rebuild prev next cache using full sql in case of core search ( excluding custom search)
No description
Name of export file.
No description
No description
No description
No description
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 260
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
in CRM_Core_Selector_Base at line 175
null
getSummary()
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()
at line 133
CRM_Contact_BAO_Query
getQueryObject()
Get the query object for this selector.
at line 169
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 $searchDescendentGroups = TRUE, string $searchContext = 'search', null $contextMenu = NULL)
Class constructor.
at line 334
getPagerParams(string $action, array $params)
Getter for array of the parameters required for creating pager.
at line 349
array
getColHeads(null $action = NULL, null $output = NULL)
at line 367
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 535
int
getTotalCount(string $action)
Returns total number of rows for the query.
at line 564
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 864
string
buildPrevNextCache(CRM_Utils_Sort $sort)
at line 918
addActions($rows)
at line 1007
removeActions($rows)
at line 1022
fillupPrevNextCache(CRM_Utils_Sort $sort, string $cacheKey, int $start = 0, int $end = self::CACHE_SIZE)
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 1110
getQILL()
at line 1123
string
getExportFileName(string $output = 'csv')
Name of export file.