/**
  * Create a new subscription history record
  *
  * @param array $params     Values for the new history record
  * @return object $history  The new history object
  * @access public
  * @static
  */
 public static function &create(&$params)
 {
     $history = new CRM_Contact_BAO_SubscriptionHistory();
     $history->date = date('Ymd');
     $history->copyValues($params);
     $history->save();
     return $history;
 }