mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-02-17 10:18:39 +00:00
continue with getter/setter removal
This commit is contained in:
parent
a51ddbe70c
commit
0893c42846
|
|
@ -49,9 +49,9 @@ trait ExchangeTrait
|
||||||
$settingData = $setting->getData();
|
$settingData = $setting->getData();
|
||||||
|
|
||||||
$lang = [];
|
$lang = [];
|
||||||
$lang['Exchange'] = include __DIR__ . '/Lang/' . $request->getLanguage() . '.lang.php';
|
$lang['Exchange'] = include __DIR__ . '/Lang/' . $request->header->l11n->language . '.lang.php';
|
||||||
|
|
||||||
$this->l11n->loadLanguage($request->header->l11n->getLanguage(), 'Exchange', $lang);
|
$this->l11n->loadLanguage($request->header->l11n->language, 'Exchange', $lang);
|
||||||
|
|
||||||
$importConnection = ($settingData['import']['db']['self'] ?? true)
|
$importConnection = ($settingData['import']['db']['self'] ?? true)
|
||||||
? $this->local ?? new NullConnection()
|
? $this->local ?? new NullConnection()
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
$lang = include $interface->source->getAbsolutePath()
|
$lang = include $interface->source->getAbsolutePath()
|
||||||
. $interface->source->name
|
. $interface->source->name
|
||||||
. '/Lang/' . $response->getLanguage() . '.lang.php';
|
. '/Lang/' . $response->header->l11n->language . '.lang.php';
|
||||||
|
|
||||||
$view->addData('lang', $lang);
|
$view->addData('lang', $lang);
|
||||||
|
|
||||||
|
|
@ -224,7 +224,7 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
$lang = include $interface->source->getAbsolutePath()
|
$lang = include $interface->source->getAbsolutePath()
|
||||||
. $interface->source->name
|
. $interface->source->name
|
||||||
. '/Lang/' . $response->getLanguage() . '.lang.php';
|
. '/Lang/' . $response->header->l11n->language . '.lang.php';
|
||||||
|
|
||||||
$view->addData('lang', $lang);
|
$view->addData('lang', $lang);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,9 @@ final class Exporter extends ExporterAbstract
|
||||||
$this->account = $request->header->account;
|
$this->account = $request->header->account;
|
||||||
|
|
||||||
$lang = [];
|
$lang = [];
|
||||||
$lang['Exchange'] = include __DIR__ . '/Lang/' . $request->getLanguage() . '.lang.php';
|
$lang['Exchange'] = include __DIR__ . '/Lang/' . $request->header->l11n->language . '.lang.php';
|
||||||
|
|
||||||
$this->l11n->loadLanguage($request->header->l11n->getLanguage(), 'Exchange', $lang);
|
$this->l11n->loadLanguage($request->header->l11n->language, 'Exchange', $lang);
|
||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
||||||
|
|
@ -82,7 +82,7 @@ final class Exporter extends ExporterAbstract
|
||||||
$log = new ExchangeLog();
|
$log = new ExchangeLog();
|
||||||
$log->createdBy = $this->account;
|
$log->createdBy = $this->account;
|
||||||
$log->setType(ExchangeType::EXPORT);
|
$log->setType(ExchangeType::EXPORT);
|
||||||
$log->message = $this->l11n->getText($request->header->l11n->getLanguage(), 'Exchange', '', 'LangFileExported');
|
$log->message = $this->l11n->getText($request->header->l11n->language, 'Exchange', '', 'LangFileExported');
|
||||||
$log->subtype = 'language';
|
$log->subtype = 'language';
|
||||||
$log->exchange = (int) $request->getData('id');
|
$log->exchange = (int) $request->getData('id');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,9 +71,9 @@ final class Importer extends ImporterAbstract
|
||||||
$end = new \DateTime($request->getData('end') ?? 'now');
|
$end = new \DateTime($request->getData('end') ?? 'now');
|
||||||
|
|
||||||
$lang = [];
|
$lang = [];
|
||||||
$lang['Exchange'] = include __DIR__ . '/Lang/' . $request->getLanguage() . '.lang.php';
|
$lang['Exchange'] = include __DIR__ . '/Lang/' . $request->header->l11n->language . '.lang.php';
|
||||||
|
|
||||||
$this->l11n->loadLanguage($request->header->l11n->getLanguage(), 'Exchange', $lang);
|
$this->l11n->loadLanguage($request->header->l11n->language, 'Exchange', $lang);
|
||||||
|
|
||||||
if ($request->hasData('db')) {
|
if ($request->hasData('db')) {
|
||||||
$this->remote = ConnectionFactory::create([
|
$this->remote = ConnectionFactory::create([
|
||||||
|
|
@ -102,7 +102,7 @@ final class Importer extends ImporterAbstract
|
||||||
$log = new ExchangeLog();
|
$log = new ExchangeLog();
|
||||||
$log->createdBy = $this->account;
|
$log->createdBy = $this->account;
|
||||||
$log->setType(ExchangeType::IMPORT);
|
$log->setType(ExchangeType::IMPORT);
|
||||||
$log->message = $this->l11n->getText($request->header->l11n->getLanguage(), 'Exchange', '', 'LangFileImported');
|
$log->message = $this->l11n->getText($request->header->l11n->language, 'Exchange', '', 'LangFileImported');
|
||||||
$log->subtype = 'language';
|
$log->subtype = 'language';
|
||||||
$log->exchange = (int) $request->getData('id');
|
$log->exchange = (int) $request->getData('id');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user