class CRM_Contact_Task

Class to represent the actions that can be performed on a group of contacts used by the search forms.

Constants

GROUP_CONTACTS

REMOVE_CONTACTS

TAG_CONTACTS

REMOVE_TAGS

EXPORT_CONTACTS

EMAIL_CONTACTS

SMS_CONTACTS

DELETE_CONTACTS

HOUSEHOLD_CONTACTS

ORGANIZATION_CONTACTS

RECORD_CONTACTS

MAP_CONTACTS

SAVE_SEARCH

SAVE_SEARCH_UPDATE

PRINT_CONTACTS

LABEL_CONTACTS

BATCH_UPDATE

ADD_EVENT

PRINT_FOR_CONTACTS

CREATE_MAILING

MERGE_CONTACTS

EMAIL_UNHOLD

RESTORE

DELETE_PERMANENTLY

COMMUNICATION_PREFS

INDIVIDUAL_CONTACTS

Properties

static array $_tasks The task array
static array $_optionalTasks The optional task array

Methods

static 
initTasks()

No description

static array
taskTitles()

These tasks are the core set of tasks that the user can perform on a contact / group of contacts

static array
permissionedTaskTitles(int $permission, bool $deletedContacts = FALSE)

Show tasks selectively based on the permission level of the user

static array
optionalTaskTitle()

These tasks get added based on the context the user is in.

static array
getTask($value)

No description

Details

at line 80
static initTasks()

at line 276
static array taskTitles()

These tasks are the core set of tasks that the user can perform on a contact / group of contacts

Return Value

array the set of tasks for a group of contacts

at line 312
static array permissionedTaskTitles(int $permission, bool $deletedContacts = FALSE)

Show tasks selectively based on the permission level of the user

Parameters

int $permission
bool $deletedContacts Are these tasks for operating on deleted contacts?.

Return Value

array set of tasks that are valid for the user

at line 354
static array optionalTaskTitle()

These tasks get added based on the context the user is in.

Return Value

array the set of optional tasks for a group of contacts

at line 366
static array getTask($value)

Parameters

$value

Return Value

array