projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UpdateCurrencyRate.php
[Pman.Core]
/
UpdateCurrencyRate.php
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
f7cda98
..
0cb3f31
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-1,6
+1,6
@@
<?php
<?php
-// note this no longer works
+// note this no longer works
-- we could try using their JSON feed?
require_once 'Pman.php';
require_once 'Pman.php';
@@
-33,6
+33,21
@@
class Pman_Core_UpdateCurrencyRate extends Pman
function get($args, $opts)
{
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');
$currency = array();
$response = $this->curl($this->actionUrl, array(), 'GET');