예제 #1
0
 /**
  * Function get the import/export fields for contribution.
  *
  * @param bool $checkPermission
  *
  * @return array
  *   Associative array of contribution fields
  */
 public static function &getFields($checkPermission = TRUE)
 {
     $fields = array();
     $fields = array_merge($fields, CRM_Event_DAO_Event::import());
     $fields = array_merge($fields, self::getParticipantFields());
     $fields = array_merge($fields, CRM_Core_DAO_Discount::export());
     return $fields;
 }
예제 #2
0
 static function &getFields()
 {
     $fields = array();
     require_once 'CRM/Event/DAO/Event.php';
     require_once 'CRM/Core/DAO/Discount.php';
     $fields = array_merge($fields, CRM_Event_DAO_Event::import());
     $fields = array_merge($fields, self::getParticipantFields());
     $fields = array_merge($fields, CRM_Core_DAO_Discount::export());
     return $fields;
 }