1: | <?php
2: | namespace Opencart\Catalog\Controller\Cron;
3: | /**
4: | * Class Currency
5: | *
6: | * @package Opencart\Catalog\Controller\Cron
7: | */
8: | class Currency extends \Opencart\System\Engine\Controller {
9: | /**
10: | * @param int $cron_id
11: | * @param string $code
12: | * @param string $cycle
13: | * @param string $date_added
14: | * @param string $date_modified
15: | *
16: | * @return void
17: | */
18: | public function index(int $cron_id, string $code, string $cycle, string $date_added, string $date_modified): void {
19: | $this->load->model('setting/extension');
20: |
21: | $extension_info = $this->model_setting_extension->getExtensionByCode('currency', $this->config->get('config_currency_engine'));
22: |
23: | if ($extension_info) {
24: | $this->load->controller('extension/' . $extension_info['extension'] . '/currency/' . $extension_info['code'] . '.currency', $this->config->get('config_currency'));
25: | }
26: | }
27: | }
28: |

OpenCart API API documentation generated by ApiGen dev-master