UpdateCurrencyRate.php
authorAlan Knowles <alan@roojs.com>
Mon, 5 Oct 2015 08:18:53 +0000 (16:18 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 5 Oct 2015 08:18:53 +0000 (16:18 +0800)
UpdateCurrencyRate.php

index f7cda98..0cb3f31 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-// note this no longer works
+// note this no longer works -- we could try using their JSON feed?
 
 
 require_once 'Pman.php';
@@ -33,6 +33,21 @@ class Pman_Core_UpdateCurrencyRate extends Pman
     
     function get($args, $opts)
     {   
+        
+        DB_DataObject::DebugLevel(1);
+        $d = DB_DataObject::Factory('core_curr_rate');
+        $d->loadRates();
+        die("done");
+        
+        
+        
+        
+        
+        
+        
+    }
+    function oldversion() 
+    {
         $currency = array();
         
         $response = $this->curl($this->actionUrl, array(), 'GET');