+ /**
+ * DO NOT USE THIS -- see core_curr_rates dataobject.
+ */
+
+
+ function convertCurrency($val, $from, $to)
+ {
+
+ return DB_DAtaObject::Factory('core_curr_rate')->convert($val,$from,$to);
+
+ }
+ /**
+ * DO NOT USE THIS -- see core_curr_rates dataobject.
+ *
+ */
+
+
+
+ function loadRates()
+ {
+ static $rates = array();
+
+ if (!empty($rates)) {
+ $this->rates = $rates;
+ return;
+ }
+
+ $this->rates = $rates = DB_DAtaObject::Factory('core_curr_rate')->currentRates();
+
+ }
+
+