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
|
@@ 163-169 (lines=7) @@
|
160 |
|
{ |
161 |
|
$sRequestUrl = ''; |
162 |
|
foreach ($aParameters as $sKey => $mValue) { |
163 |
|
if (is_array($mValue)) {// might be array |
164 |
|
foreach ($mValue as $i => $sSubValue) { |
165 |
|
$sRequestUrl .= "&".$sKey."[".$i."]=".urlencode($sSubValue); |
166 |
|
} |
167 |
|
} else { |
168 |
|
$sRequestUrl .= "&".$sKey."=".urlencode($mValue); |
169 |
|
} |
170 |
|
} |
171 |
|
$sRequestUrl = $sApiUrl."?".substr($sRequestUrl, 1); |
172 |
|
return $sRequestUrl; |