Files
interblue.pl/modules/empikmarketplace/controllers/admin/AdminEmpikHelpController.php
2025-05-30 09:08:26 +02:00

47 lines
1.4 KiB
PHP

<?php
use Empik\Marketplace\Handler\CronJobsHandler;
use Empik\Marketplace\PrestaShopContext;
class AdminEmpikHelpController extends ModuleAdminController
{
/** @var CronJobsHandler */
protected $cronJobsHandler;
/** @var EmpikMarketplace */
public $module;
/** @var PrestaShopContext */
public $prestaShopContext;
public function __construct()
{
parent::__construct();
$this->bootstrap = true;
$this->cronJobsHandler = $this->module->getService('empik.marketplace.handler.cronJobs');
$this->prestaShopContext = $this->module->getService('empik.marketplace.prestaShopContext');
}
public function initContent()
{
$this->context->smarty->assign([
'cron_jobs' => $this->cronJobsHandler->getAvailableActionsUrls(),
'url_help' => 'https://www.empik.com/empikplace/pomoc',
'url_docs' => 'https://www.empik.com/empikplace/integracje/prestashop/instrukcja',
]);
$this->content = $this->context->smarty->fetch(
$this->module->getLocalPath() . '/views/templates/admin/help.tpl'
);
parent::initContent();
}
protected function l($string, $class = null, $addslashes = false, $htmlentities = true)
{
return Translate::getModuleTranslation($this->module, $string, get_class($this), null, $addslashes);
}
}