* @link https://www.oxidmodule.com */ namespace D3\Importer\Application\Controller\Admin\Articleimport; use D3\ModCfg\Application\Model\Exception\d3ShopCompatibilityAdapterException; use D3\ModCfg\Application\Model\Exception\d3_cfg_mod_exception; use Doctrine\DBAL\DBALException; use OxidEsales\Eshop\Core\Exception\DatabaseConnectionException; use OxidEsales\Eshop\Core\Exception\DatabaseErrorException; use OxidEsales\Eshop\Core\Exception\StandardException; use Exception; use D3\Importer\Application\Controller\Admin\Base; use D3\Importer\Application\Models\Constants; use D3\Importer\Application\Models\ImportConfig; use OxidEsales\Eshop\Core\Request; /** * Importer selectlist manager. * * @package admin */ class SelectList extends Base { /** * Current class default template name. * * @var string */ protected $_sThisTemplate = '@' . Constants::OXID_MODULE_ID . '/admin/d3_importer_selectlist'; /** * defines profile name * * @var string */ protected $currentProfileName = 'd3_importer_selectlist'; /** * Executes parent method parent::render(), creates oxlist object, * passes it's data to Smarty engine and retutns name of template * file "d3_importer_category.tpl". * * @return string * @throws d3ShopCompatibilityAdapterException * @throws d3_cfg_mod_exception * @throws DBALException * @throws DatabaseConnectionException * @throws DatabaseErrorException * @throws StandardException */ public function render() { $sReturn = parent::render(); $this->readCurrentCSVLine(); return $sReturn; } /** * extension of d3_d3importer_controllers_admin_base::save * * * @throws Exception * @throws d3_cfg_mod_exception * @throws DatabaseConnectionException */ public function saveImportProfile(array $aXMLParams = []) { $aXMLParams = oxNew(Request::class)->getRequestParameter("xmlval"); foreach ($aXMLParams['IMPORTCOLUM'] as $iIndex => $aValue) { if (false == isset($aValue['NAME']) || empty($aValue['NAME'])) { unset($aXMLParams['IMPORTCOLUM'][$iIndex]); } } parent::saveImportProfile($aXMLParams); } /** * @return array */ protected function getFormularElements(ImportConfig $oImportConfig) { // TODO: Implement _getFormularElements() method. return []; } }