/**
  * 
  * @param array     The values of the new MandrillActivity
  *
  * @return object   The new MandrillActivity mapping
  * @access public
  * @static
  */
 public static function &create(&$params)
 {
     $dao = new CRM_Mte_DAO_MandrillActivity();
     $dao->copyValues($params);
     if (!$dao->find(TRUE)) {
         $dao->save();
     }
     return $dao;
 }
 /**
  * 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['mandrill_activity'] =& $fields[$name];
                 } else {
                     self::$_export[$name] =& $fields[$name];
                 }
             }
         }
     }
     return self::$_export;
 }