Esempio n. 1
0
 /**
  * class constructor
  */
 function __construct()
 {
     parent::__construct();
 }
Esempio n. 2
0
 /**
  * class constructor
  */
 function CRM_Mailing_Event_BAO_Unsubscribe()
 {
     parent::CRM_Mailing_Event_DAO_Unsubscribe();
 }
Esempio n. 3
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_unsubscribe'] =& $fields[$name];
                 } else {
                     self::$_export[$name] =& $fields[$name];
                 }
             }
         }
     }
     return self::$_export;
 }
Esempio n. 4
0
 /**
  * returns the list of fields that can be exported
  *
  * @access public
  * return array
  */
 function &export($prefix = false)
 {
     if (!$GLOBALS['_CRM_MAILING_EVENT_DAO_UNSUBSCRIBE']['_export']) {
         $GLOBALS['_CRM_MAILING_EVENT_DAO_UNSUBSCRIBE']['_export'] = array();
         $fields =& CRM_Mailing_Event_DAO_Unsubscribe::fields();
         foreach ($fields as $name => $field) {
             if (CRM_Utils_Array::value('export', $field)) {
                 if ($prefix) {
                     $GLOBALS['_CRM_MAILING_EVENT_DAO_UNSUBSCRIBE']['_export']['mailing_event_unsubscribe'] =& $fields[$name];
                 } else {
                     $GLOBALS['_CRM_MAILING_EVENT_DAO_UNSUBSCRIBE']['_export'][$name] =& $fields[$name];
                 }
             }
         }
     }
     return $GLOBALS['_CRM_MAILING_EVENT_DAO_UNSUBSCRIBE']['_export'];
 }