/** * returns the list of fields that can be exported * * @access public * return array */ function &export($prefix = false) { if (!$GLOBALS['_CRM_MAILING_DAO_COMPONENT']['_export']) { $GLOBALS['_CRM_MAILING_DAO_COMPONENT']['_export'] = array(); $fields =& CRM_Mailing_DAO_Component::fields(); foreach ($fields as $name => $field) { if (CRM_Utils_Array::value('export', $field)) { if ($prefix) { $GLOBALS['_CRM_MAILING_DAO_COMPONENT']['_export']['mailing_component'] =& $fields[$name]; } else { $GLOBALS['_CRM_MAILING_DAO_COMPONENT']['_export'][$name] =& $fields[$name]; } } } } return $GLOBALS['_CRM_MAILING_DAO_COMPONENT']['_export']; }