X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=UpdateCurrencyRate.php;h=0c0fe04d6b6cfb5c4b7596f8e8938230ddf5866d;hp=0cb3f312bd9b7e613915aa7996824289ce3bc5f5;hb=8cd2a9237c684aa16bc21e3ac6d3793c49c65400;hpb=44e228c877f6a0ae4858b0a3121bfa9bef890d95 diff --git a/UpdateCurrencyRate.php b/UpdateCurrencyRate.php index 0cb3f312..0c0fe04d 100644 --- a/UpdateCurrencyRate.php +++ b/UpdateCurrencyRate.php @@ -31,19 +31,20 @@ class Pman_Core_UpdateCurrencyRate extends Pman die("NOT ALLOWED"); } - function get($args, $opts) + function get($args, $opts=array()) { - DB_DataObject::DebugLevel(1); + //DB_DataObject::DebugLevel(1); $d = DB_DataObject::Factory('core_curr_rate'); $d->loadRates(); - die("done"); - - + $hkd = $d->convert(1,'USD','HKD'); + echo "1 USD is ~ $hkd HKD (should be about 7.75)\n "; + die("done"); + } function oldversion()