CRM_Mailing_Selector_Event
class CRM_Mailing_Selector_Event extends CRM_Core_Selector_Base implements CRM_Core_Selector_API
This class is used to retrieve and display a range of contacts that match the given criteria (specifically for results of advanced search options.
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 supported links, currently null | |
array | $_columnHeaders | We use desc to remind us what that column is, name is used in the tpl |
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
Class constructor.
Getter for array of the parameters required for creating pager.
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.
Name of export file.
Get the title for the mailing event type.
Get the title of the event.
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 114
static
links()
This method returns the links that are given for each search row.
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()
in CRM_Core_Selector_Base at line 182
setKey($key)
in CRM_Core_Selector_Base at line 189
string
getKey()
at line 101
CRM_Mailing_Selector_Event
__construct(string $event, bool $distinct, int $mailing, int $job = NULL, int $url = NULL)
Class constructor.
at line 124
getPagerParams(string $action, array $params)
Getter for array of the parameters required for creating pager.
at line 144
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 267
int
getTotalCount(string $action)
Returns total number of rows for the query.
at line 364
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 443
string
getExportFileName(string $output = 'csv')
Name of export file.
at line 452
string
eventToTitle()
Get the title for the mailing event type.
at line 476
string
getTitle()
Get the title of the event.