/** * returns the list of fields that can be exported * * @access public * return array * @static */ static function &export($prefix = false) { if (!self::$_export) { self::$_export = array(); $fields = self::fields(); foreach ($fields as $name => $field) { if (CRM_Utils_Array::value('export', $field)) { if ($prefix) { self::$_export['mailing_event_opened'] =& $fields[$name]; } else { self::$_export[$name] =& $fields[$name]; } } } } return self::$_export; }
/** * Class constructor. */ public function __construct() { parent::__construct(); }
/** * returns the list of fields that can be exported * * @access public * return array */ function &export($prefix = false) { if (!$GLOBALS['_CRM_MAILING_EVENT_DAO_OPENED']['_export']) { $GLOBALS['_CRM_MAILING_EVENT_DAO_OPENED']['_export'] = array(); $fields =& CRM_Mailing_Event_DAO_Opened::fields(); foreach ($fields as $name => $field) { if (CRM_Utils_Array::value('export', $field)) { if ($prefix) { $GLOBALS['_CRM_MAILING_EVENT_DAO_OPENED']['_export']['mailing_event_opened'] =& $fields[$name]; } else { $GLOBALS['_CRM_MAILING_EVENT_DAO_OPENED']['_export'][$name] =& $fields[$name]; } } } } return $GLOBALS['_CRM_MAILING_EVENT_DAO_OPENED']['_export']; }
/** * class constructor */ function CRM_Mailing_Event_BAO_Opened() { parent::CRM_Mailing_Event_DAO_Opened(); }