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
0cb3f31
..
54bed5c
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-37,6
+37,11
@@
class Pman_Core_UpdateCurrencyRate extends Pman
DB_DataObject::DebugLevel(1);
$d = DB_DataObject::Factory('core_curr_rate');
$d->loadRates();
+
+ $hkd = $d->convert(1,'USD','HKD');
+
+ echo "1 USD is ~ $hkd HKD (should be aobut 7.8)\n ";
+
die("done");