| @@ 331-338 (lines=8) @@ | ||
| 328 | * |
|
| 329 | * @return string |
|
| 330 | */ |
|
| 331 | protected function getRateKey($currencyCode, $date, $rateType, $sourceName) |
|
| 332 | { |
|
| 333 | return str_replace( |
|
| 334 | ['%currency_code%', '%date%', '%rate_type%', '%source_name%'], |
|
| 335 | [$currencyCode, $date->format('Y-m-d'), $rateType, $sourceName], |
|
| 336 | '%currency_code%_%date%_%rate_type%_%source_name%' |
|
| 337 | ); |
|
| 338 | } |
|
| 339 | ||
| 340 | /** |
|
| 341 | * Initialize table schema where rates would be stored. |
|
| @@ 241-248 (lines=8) @@ | ||
| 238 | * @param string $sourceName |
|
| 239 | * @return string |
|
| 240 | */ |
|
| 241 | protected function getRateKey($currencyCode, $date, $rateType, $sourceName) |
|
| 242 | { |
|
| 243 | return str_replace( |
|
| 244 | array('%currency_code%', '%date%', '%rate_type%', '%source_name%'), |
|
| 245 | array($currencyCode, $date->format('Y-m-d'), $rateType, $sourceName), |
|
| 246 | '%currency_code%_%date%_%rate_type%_%source_name%' |
|
| 247 | ); |
|
| 248 | } |
|
| 249 | ||
| 250 | /** |
|
| 251 | * Initializes file storage. |
|
| @@ 164-171 (lines=8) @@ | ||
| 161 | * @param string $sourceName |
|
| 162 | * @return string |
|
| 163 | */ |
|
| 164 | protected function getRateKey($currencyCode, $date, $rateType, $sourceName) |
|
| 165 | { |
|
| 166 | return str_replace( |
|
| 167 | array('%currency_code%', '%date%', '%rate_type%', '%source_name%'), |
|
| 168 | array($currencyCode, $date->format('Y-m-d'), $rateType, $sourceName), |
|
| 169 | '%currency_code%_%date%_%rate_type%_%source_name%' |
|
| 170 | ); |
|
| 171 | } |
|
| 172 | ||
| 173 | /** |
|
| 174 | * Extract requested page from filter criteria. |
|