Exemple #1
0
 /**
  * returns the list of fields that can be exported
  *
  * @access public
  * return array
  */
 function &export($prefix = false)
 {
     if (!$GLOBALS['_CRM_MAILING_EVENT_DAO_REPLY']['_export']) {
         $GLOBALS['_CRM_MAILING_EVENT_DAO_REPLY']['_export'] = array();
         $fields =& CRM_Mailing_Event_DAO_Reply::fields();
         foreach ($fields as $name => $field) {
             if (CRM_Utils_Array::value('export', $field)) {
                 if ($prefix) {
                     $GLOBALS['_CRM_MAILING_EVENT_DAO_REPLY']['_export']['mailing_event_reply'] =& $fields[$name];
                 } else {
                     $GLOBALS['_CRM_MAILING_EVENT_DAO_REPLY']['_export'][$name] =& $fields[$name];
                 }
             }
         }
     }
     return $GLOBALS['_CRM_MAILING_EVENT_DAO_REPLY']['_export'];
 }
Exemple #2
0
 /**
  * Returns the list of fields that can be exported
  *
  * @param bool $prefix
  *
  * @return array
  */
 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_reply'] =& $fields[$name];
                 } else {
                     self::$_export[$name] =& $fields[$name];
                 }
             }
         }
     }
     return self::$_export;
 }
Exemple #3
0
 /**
  * Class constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }
Exemple #4
0
 /**
  * class constructor
  */
 function CRM_Mailing_Event_BAO_Reply()
 {
     parent::CRM_Mailing_Event_DAO_Reply();
 }