public function __construct() {}
- function run($clientID,
- $caseID,
- $activitySetName,
- $params
- ) {
+ function run($clientID, $caseID, $activitySetName, $params) {
$contents = self::getCaseReport($clientID,
$caseID,
$activitySetName,
return NULL;
}
- function getActivities($clientID,
- $caseID,
- $activityTypes,
- &$activities
- ) {
+ function getActivities($clientID, $caseID, $activityTypes, &$activities) {
// get all activities for this case that in this activityTypes set
foreach ($activityTypes as $aType) {
$map[$aType['id']] = $aType;
return $activityInfos[$index];
}
- function &getActivity($clientID,
- $activityDAO,
- &$activityTypeInfo
- ) {
-
+ function &getActivity($clientID, $activityDAO, &$activityTypeInfo) {
if (empty($this->_redactionStringRules)) {
$this->_redactionStringRules = array();
}
$targetNames = CRM_Activity_BAO_ActivityTarget::getTargetNames($activityDAO->id);
$processTarget = FALSE;
$label = ts('With Contact(s)');
- if (in_array($activityTypeInfo['name'], array(
- 'Email', 'Inbound Email'))) {
+ if (in_array($activityTypeInfo['name'], array('Email', 'Inbound Email'))) {
$processTarget = TRUE;
$label = ts('Recipient');
}
// Activity Type info is a special field
$activity['fields'][] = array(
- 'label' => 'Activity Type',
+ 'label' => ts('Activity Type'),
'value' => $activityTypeInfo['label'],
'type' => 'String',
);
$activity['fields'][] = array(
- 'label' => 'Subject',
+ 'label' => ts('Subject'),
'value' => htmlspecialchars($this->redact($activityDAO->subject)),
'type' => 'Memo',
);
);
}
$activity['fields'][] = array(
- 'label' => 'Created By',
+ 'label' => ts('Created By'),
'value' => $this->redact($creator),
'type' => 'String',
);
}
$activity['fields'][] = array(
- 'label' => 'Reported By',
+ 'label' => ts('Reported By'),
'value' => $this->redact($reporter),
'type' => 'String',
);
}
$assigneeContacts = implode(', ', $assignee_contact_names);
$activity['fields'][] = array(
- 'label' => 'Assigned To',
+ 'label' => ts('Assigned To'),
'value' => $assigneeContacts,
'type' => 'String',
);
if ($activityDAO->medium_id) {
$activity['fields'][] = array(
- 'label' => 'Medium',
+ 'label' => ts('Medium'),
'value' => CRM_Core_OptionGroup::getLabel('encounter_medium',
$activityDAO->medium_id, FALSE
),
}
$activity['fields'][] = array(
- 'label' => 'Location',
+ 'label' => ts('Location'),
'value' => $activityDAO->location,
'type' => 'String',
);
$activity['fields'][] = array(
- 'label' => 'Date and Time',
+ 'label' => ts('Date and Time'),
'value' => $activityDAO->activity_date_time,
'type' => 'Date',
);
$activity['fields'][] = array(
- 'label' => 'Details',
+ 'label' => ts('Details'),
'value' => $this->redact(CRM_Utils_String::stripAlternatives($activityDAO->details)),
'type' => 'Memo',
);
// Skip Duration field if empty (to avoid " minutes" output). Might want to do this for all fields at some point. dgg
if ($activityDAO->duration) {
$activity['fields'][] = array(
- 'label' => 'Duration',
+ 'label' => ts('Duration'),
'value' => $activityDAO->duration . ' ' . ts('minutes'),
'type' => 'Int',
);
}
$activity['fields'][] = array(
- 'label' => 'Status',
+ 'label' => ts('Status'),
'value' => CRM_Core_OptionGroup::getLabel('activity_status',
$activityDAO->status_id
),
);
$activity['fields'][] = array(
- 'label' => 'Priority',
+ 'label' => ts('Priority'),
'value' => CRM_Core_OptionGroup::getLabel('priority',
$activityDAO->priority_id
),
return $activity;
}
- function getCustomData($clientID,
- $activityDAO,
- &$activityTypeInfo
- ) {
+ function getCustomData($clientID, $activityDAO, &$activityTypeInfo) {
list($typeValues, $options, $sql) = $this->getActivityTypeCustomSQL($activityTypeInfo['id'], '%Y-%m-%d');
$params = array(1 => array($activityDAO->id, 'Integer'));