@@ 324-331 (lines=8) @@ | ||
321 | * @param string $sourceName |
|
322 | * @return string |
|
323 | */ |
|
324 | protected function getRateKey($currencyCode, $date, $rateType, $sourceName) |
|
325 | { |
|
326 | return str_replace( |
|
327 | array('%currency_code%', '%date%', '%rate_type%', '%source_name%'), |
|
328 | array($currencyCode, $date->format('Y-m-d'), $rateType, $sourceName), |
|
329 | '%currency_code%_%date%_%rate_type%_%source_name%' |
|
330 | ); |
|
331 | } |
|
332 | ||
333 | /** |
|
334 | * Initialize table schema where rates would be stored. |
@@ 237-244 (lines=8) @@ | ||
234 | * @param string $sourceName |
|
235 | * @return string |
|
236 | */ |
|
237 | protected function getRateKey($currencyCode, $date, $rateType, $sourceName) |
|
238 | { |
|
239 | return str_replace( |
|
240 | array('%currency_code%', '%date%', '%rate_type%', '%source_name%'), |
|
241 | array($currencyCode, $date->format('Y-m-d'), $rateType, $sourceName), |
|
242 | '%currency_code%_%date%_%rate_type%_%source_name%' |
|
243 | ); |
|
244 | } |
|
245 | ||
246 | /** |
|
247 | * Initializes file storage. |