projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b552b76
)
UpdateCurrencyRate.php
author
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 07:16:23 +0000
(15:16 +0800)
committer
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 07:16:23 +0000
(15:16 +0800)
UpdateCurrencyRate.php
patch
|
blob
|
history
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
2cbc414
..
a12feb3
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-27,7
+27,9
@@
class Pman_Core_UpdateCurrencyRate extends Pman
function get()
{
- echo"'update currency exchange rate \n";
+ echo "obtain the currency lists... \n";
+
+ $currency = array();
$response = $this->curl($this->actionUrl, array(), 'GET');
@@
-38,6
+40,8
@@
class Pman_Core_UpdateCurrencyRate extends Pman
$elements = $xpath->query("//select[@name='exch']/option");
+
+
foreach($elements as $el) {
print_r($el->getAttribute('value'));
echo "\n";