public $_columnHeaders;
/**
- * Class constructor
+ * Class constructor.
*
* @param string $event
* The event type (queue/delivered/open...).
if (!isset($this->_columnHeaders)) {
$this->_columnHeaders = array(
- array(
+ 'sort_name' => array(
'name' => ts('Contact'),
'sort' => $contact . '.sort_name',
'direction' => CRM_Utils_Sort::ASCENDING,
),
- array(
+ 'email' => array(
'name' => ts('Email Address'),
'sort' => $email . '.email',
'direction' => CRM_Utils_Sort::DONTCARE,
break;
case 'delivered':
+ $this->_columnHeaders = array(
+ 'contact_id' => array(
+ 'name' => ts('Internal Contact ID'),
+ 'sort' => $contact . '.id',
+ 'direction' => CRM_Utils_Sort::ASCENDING,
+ ),
+ ) + $this->_columnHeaders;
$dateSort = CRM_Mailing_Event_BAO_Delivered::getTableName() . '.time_stamp';
break;
return 0;
}
- $this->_columnHeaders = array_merge($this->_columnHeaders,
- array(
- array(
- 'name' => ts('Date'),
- 'sort' => $dateSort,
- 'direction' => CRM_Utils_Sort::DESCENDING,
+ $this->_columnHeaders = array_merge($this->_columnHeaders, array(
+ 'date' => array(
+ 'name' => ts('Date'),
+ 'sort' => $dateSort,
+ 'direction' => CRM_Utils_Sort::DESCENDING,
),
- )
- );
+ ));
}
return $this->_columnHeaders;
}
}
/**
- * Returns all the rows in the given offset and rowCount
+ * Returns all the rows in the given offset and rowCount.
*
* @param string $action
* The action being performed.