projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DataObjects/Core_curr_rate.php
[Pman.Core]
/
UpdateCurrencyRate.php
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
433f07c
..
fc37c1f
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-29,9
+29,7
@@
class Pman_Core_UpdateCurrencyRate extends Pman
}
function get()
}
function get()
- {
- echo "obtain the currency lists... \n";
-
+ {
$currency = array();
$response = $this->curl($this->actionUrl, array(), 'GET');
$currency = array();
$response = $this->curl($this->actionUrl, array(), 'GET');
@@
-58,7
+56,12
@@
class Pman_Core_UpdateCurrencyRate extends Pman
$fromDate = date('m/d/y', strtotime("-6 MONTH"));
$toDate = date('m/d/y');
$fromDate = date('m/d/y', strtotime("-6 MONTH"));
$toDate = date('m/d/y');
+ $total = count($currency);
+
foreach ($currency as $k => $c){
foreach ($currency as $k => $c){
+
+ echo "\nProcessing Currency : $c ($k / $total) \n";
+
$params = array(
'lang' => 'en',
'result' => 1,
$params = array(
'lang' => 'en',
'result' => 1,
@@
-106,6
+109,8
@@
class Pman_Core_UpdateCurrencyRate extends Pman
}
}
+ $this->jok("DONE");
+
}
function curl($url, $request = array(), $method = 'GET')
}
function curl($url, $request = array(), $method = 'GET')