![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/app/code/Xtento/StockImport/Helper/ |
<?php /** * Product: Xtento_StockImport * ID: u66QkJ5rBwmimhUzUElhIKqqWRvsbhC3WLqSMk5AjmQ= * Last Modified: 2019-02-05T17:10:52+00:00 * File: app/code/Xtento/StockImport/Helper/Module.php * Copyright: Copyright (c) XTENTO GmbH & Co. KG <[email protected]> / All rights reserved. */ namespace Xtento\StockImport\Helper; class Module extends \Xtento\XtCore\Helper\AbstractModule { /** * @var \Magento\Framework\App\ResourceConnection */ protected $resource; /** * Module constructor. * * @param \Magento\Framework\App\Helper\Context $context * @param \Magento\Framework\Registry $registry * @param \Xtento\XtCore\Helper\Server $serverHelper * @param \Xtento\XtCore\Helper\Utils $utilsHelper * @param \Magento\Framework\App\ResourceConnection $resource */ public function __construct( \Magento\Framework\App\Helper\Context $context, \Magento\Framework\Registry $registry, \Xtento\XtCore\Helper\Server $serverHelper, \Xtento\XtCore\Helper\Utils $utilsHelper, \Magento\Framework\App\ResourceConnection $resource ) { parent::__construct($context, $registry, $serverHelper, $utilsHelper); $this->resource = $resource; } protected $edition = 'CE'; protected $module = 'Xtento_StockImport'; protected $extId = 'MTWOXtento_InventoryImport996581'; protected $configPath = 'stockimport/general/'; // Module specific functionality below public function getDebugEnabled() { return $this->scopeConfig->isSetFlag($this->configPath . 'debug'); } public function isDebugEnabled() { return $this->scopeConfig->isSetFlag( $this->configPath . 'debug' ) && ($debug_email = $this->scopeConfig->getValue( $this->configPath . 'debug_email' )) && !empty($debug_email); } public function getDebugEmail() { return $this->scopeConfig->getValue($this->configPath . 'debug_email'); } public function isModuleProperlyInstalled() { return true; // Not required, Magento 2 does the job of handling upgrades better than Magento 1 // Check if DB table(s) have been created. return ($this->resource->getConnection('core_read')->showTableStatus( $this->resource->getTableName('xtento_stockimport_profile') ) !== false); } }