Exemple #1
0
 /**
  * Returns the column headers as an array of tuples:
  * (name, sortName (key to the sort array))
  *
  * @param string $action
  *   The action being performed.
  * @param string $output
  *   What should the result set include (web/email/csv).
  *
  * @return array
  *   the column headers that need to be displayed
  */
 public function &getColumnHeaders($action = NULL, $output = NULL)
 {
     if (!isset(self::$_columnHeaders)) {
         self::$_columnHeaders = array(array('name' => ts('Status'), 'sort' => 'grant_status', 'direction' => CRM_Utils_Sort::DONTCARE), array('name' => ts('Type'), 'sort' => 'grant_type_id', 'direction' => CRM_Utils_Sort::DONTCARE), array('name' => ts('Requested'), 'sort' => 'grant_amount_total', 'direction' => CRM_Utils_Sort::DONTCARE), array('name' => ts('Granted'), 'sort' => 'grant_amount_granted', 'direction' => CRM_Utils_Sort::DONTCARE), array('name' => ts('Application Received'), 'sort' => 'grant_application_received_date', 'direction' => CRM_Utils_Sort::DONTCARE), array('name' => ts('Report Received'), 'sort' => 'grant_report_received', 'direction' => CRM_Utils_Sort::DONTCARE), array('name' => ts('Money Transferred'), 'sort' => 'money_transfer_date', 'direction' => CRM_Utils_Sort::DONTCARE), array('desc' => ts('Actions')));
         if (!$this->_single) {
             $pre = array(array('desc' => ts('Contact Type')), array('name' => ts('Name'), 'sort' => 'sort_name', 'direction' => CRM_Utils_Sort::ASCENDING));
             self::$_columnHeaders = array_merge($pre, self::$_columnHeaders);
         }
     }
     return self::$_columnHeaders;
 }