Ekdant-Online-Store/catalog/controller/cron/currency.php
2024-08-06 18:06:00 +05:45

28 lines
847 B
PHP

<?php
namespace Opencart\Catalog\Controller\Cron;
/**
* Class Currency
*
* @package Opencart\Catalog\Controller\Cron
*/
class Currency extends \Opencart\System\Engine\Controller {
/**
* @param int $cron_id
* @param string $code
* @param string $cycle
* @param string $date_added
* @param string $date_modified
*
* @return void
*/
public function index(int $cron_id, string $code, string $cycle, string $date_added, string $date_modified): void {
$this->load->model('setting/extension');
$extension_info = $this->model_setting_extension->getExtensionByCode('currency', $this->config->get('config_currency_engine'));
if ($extension_info) {
$this->load->controller('extension/' . $extension_info['extension'] . '/currency/' . $extension_info['code'] . '.currency', $this->config->get('config_currency'));
}
}
}