CRM_Contact_Form_Search_Custom_ActivitySearch
class CRM_Contact_Form_Search_Custom_ActivitySearch extends CRM_Contact_Form_Search_Custom_Base implements CRM_Contact_Form_Search_Interface
Properties
protected | $_formValues | ||
protected | $_columns | from CRM_Contact_Form_Search_Custom_Base | |
protected | $_stateID | from CRM_Contact_Form_Search_Custom_Base | |
protected | $_aclFrom | ||
protected | $_aclWhere |
Methods
Class constructor.
Builds the list of tasks or actions that a searcher can perform on a result set.
No description
No description
No description
No description
Define the smarty template used to layout the search form and results listings.
No description
No description
No description
override this method to define the contact query object used for creating $sql
No description
Construct the search query.
Alters the date display in the Activity Date Column. We do this after we already have the result so that sorting on the date column stays pertinent to the numeric date value
Regular JOIN statements here to limit results to contacts who have activities.
WHERE clause is an array built from any required JOINS plus conditional filters based on search criteria field values.
No description
Format saved search fields for this custom group.
Details
at line 44
__construct(array $formValues)
Class constructor.
in CRM_Contact_Form_Search_Custom_Base at line 59
array
buildTaskList(CRM_Core_Form_Search $form)
Builds the list of tasks or actions that a searcher can perform on a result set.
The returned array completely replaces the task list, so a child class that wants to modify the existing list should manipulate the result of this method.
at line 368
null|string
count()
at line 409
null
summary()
at line 383
string
contactIDs(int $offset = 0, int $rowcount = 0, null $sort = NULL, bool $returnSQL = TRUE)
in CRM_Contact_Form_Search_Custom_Base at line 111
string
sql($selectClause, int $offset = 0, int $rowcount = 0, null $sort = NULL, bool $includeContactIDs = FALSE, null $groupBy = NULL)
at line 150
null
templateFile()
Define the smarty template used to layout the search form and results listings.
at line 390
columns()
in CRM_Contact_Form_Search_Custom_Base at line 155
static
includeContactIDs($sql, $formValues)
in CRM_Contact_Form_Search_Custom_Base at line 177
addSortOffset($sql, $offset, $rowcount, $sort)
in CRM_Contact_Form_Search_Custom_Base at line 202
validateUserSQL($sql, bool $onlyWhere = FALSE)
in CRM_Contact_Form_Search_Custom_Base at line 233
string
whereClause($where, array $params)
in CRM_Contact_Form_Search_Custom_Base at line 242
null
getQueryObj()
override this method to define the contact query object used for creating $sql
at line 397
setTitle(string $title)
in CRM_Contact_Form_Search_Custom_Base at line 270
array
formRule(array $fields, array $files, CRM_Core_Form $self)
Validate form input.
at line 90
buildForm(CRM_Core_Form $form)
at line 165
all(int $offset = 0, int $rowcount = 0, null $sort = NULL, bool $includeContactIDs = FALSE, bool $justIDs = FALSE)
Construct the search query.
at line 252
alterRow($row)
Alters the date display in the Activity Date Column. We do this after we already have the result so that sorting on the date column stays pertinent to the numeric date value
at line 260
from()
Regular JOIN statements here to limit results to contacts who have activities.
at line 298
where(bool $includeContactIDs = FALSE)
WHERE clause is an array built from any required JOINS plus conditional filters based on search criteria field values.
at line 416
buildACLClause(string $tableAlias = 'contact')
at line 430
static array
formatSavedSearchFields(array $formValues)
Format saved search fields for this custom group.
Note this is a function to facilitate the transition to jcalendar for saved search groups. In time it can be stripped out again.