| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
ORDER BY $orderBy
LIMIT $offset, $rowCount";
- $rows = array();
- $object = CRM_Core_DAO::executeQuery($query, $params);
+ $rows = array();
+ $object = CRM_Core_DAO::executeQuery($query, $params);
$statusLookup = CRM_Event_PseudoConstant::participantStatus();
while ($object->fetch()) {
$status = CRM_Utils_Array::value($object->status_id, $statusLookup);
static $headers = NULL;
if (!$headers) {
$headers = array();
- $headers[1] = array('name' => ts('Name'),
+ $headers[1] = array(
+ 'name' => ts('Name'),
'sort' => 'civicrm_contact.sort_name',
'direction' => CRM_Utils_Sort::ASCENDING,
);
- $headers[2] = array('name' => ts('Status'),
+ $headers[2] = array(
+ 'name' => ts('Status'),
'sort' => 'civicrm_participant.status_id',
'direction' => CRM_Utils_Sort::DONTCARE,
);
- $headers[3] = array('name' => ts('Register Date'),
+ $headers[3] = array(
+ 'name' => ts('Register Date'),
'sort' => 'civicrm_participant.register_date',
'direction' => CRM_Utils_Sort::DONTCARE,
);
return $sort->orderBy();
}
+
}