CRM_Activity_Selector_Activity
class CRM_Activity_Selector_Activity extends CRM_Core_Selector_Base implements CRM_Core_Selector_API
This class is used to retrieve and display activities for a contact.
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 | $_columnHeaders | We use desc to remind us what that column is, name is used in the tpl | |
protected int | $_contactId | ContactId - contact id of contact whose activies are displayed | |
protected | $_admin | ||
protected | $_context | ||
protected | $_activityTypeIDs | ||
protected | $_viewOptions |
Methods
This function gets the attribute for the action that.
This is a static virtual function returning reference on links array. Each inherited class must redefine this function
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.
This method returns the action links that are given for each search row.
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.
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.
in CRM_Core_Selector_Base at line 95
static
links()
This is a static virtual function returning reference on links array. Each inherited class must redefine this function
links is an array of associative arrays. Each element of the array has at least 3 fields
name : the name of the link url : the URI to be used for this link qs : the parameters to the above url along with any dynamic substitutions title : A more descriptive name, typically used in breadcrumbs / navigation
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 75
CRM_Activity_Selector_Activity
__construct(int $contactId, int $permission, bool $admin = FALSE, string $context = 'activity', null $activityTypeIDs = NULL)
Class constructor.
at line 108
static array
actionLinks(int $activityTypeId, int $sourceRecordId = NULL, bool $accessMailingReport = FALSE, int $activityId = NULL, null $key = NULL, null $compContext = NULL)
This method returns the action links that are given for each search row.
currently the action links added for each row are
- View
at line 301
getPagerParams(string $action, array $params)
Getter for array of the parameters required for creating pager.
at line 322
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 348
int
getTotalCount(string $action, null $case = NULL)
Returns total number of rows for the query.
at line 381
int
getRows(string $action, int $offset, int $rowCount, string $sort, string $output = NULL, null $case = NULL)
Returns all the rows in the given offset and rowCount.
at line 503
string
getExportFileName(string $output = 'csv')
Name of export file.