Model/TransactionStatus/Forwarding.php 1 location
|
@@ 62-68 (lines=7) @@
|
59 |
|
protected function addParam($sKey, $mValue) |
60 |
|
{ |
61 |
|
$sParams = ''; |
62 |
|
if (is_array($mValue)) { |
63 |
|
foreach ($mValue as $sSubKey => $mSubValue) { |
64 |
|
$sParams .= $this->addParam($sKey.'['.$sSubKey.']', $mSubValue); |
65 |
|
} |
66 |
|
} else { |
67 |
|
$sParams .= "&".$sKey."=".urlencode($mValue); |
68 |
|
} |
69 |
|
return $sParams; |
70 |
|
} |
71 |
|
|
Helper/Api.php 1 location
|
@@ 152-158 (lines=7) @@
|
149 |
|
{ |
150 |
|
$sRequestUrl = ''; |
151 |
|
foreach ($aParameters as $sKey => $mValue) { |
152 |
|
if (is_array($mValue)) {// might be array |
153 |
|
foreach ($mValue as $i => $sSubValue) { |
154 |
|
$sRequestUrl .= "&".$sKey."[".$i."]=".urlencode($sSubValue); |
155 |
|
} |
156 |
|
} else { |
157 |
|
$sRequestUrl .= "&".$sKey."=".urlencode($mValue); |
158 |
|
} |
159 |
|
} |
160 |
|
$sRequestUrl = $sApiUrl."?".substr($sRequestUrl, 1); |
161 |
|
return $sRequestUrl; |