* @link https://www.oxidmodule.com */ use OxidEsales\Eshop\Application\Controller\Admin\AdminListController; /** * Picture list manager. * Performs collection and managing (such as filtering or deleting) function. * * @package admin */ class d3_importer_Application_Controller_Admin_Pictureimport_AdminList extends AdminListController { /** * Current class template name. * * @var string */ protected $_sThisTemplate = 'd3_picture_list.tpl'; /** * Name of chosen object class (default null). * * @var string */ protected $_sListClass = 'd3_importer_Application_Models_ImportConfig'; /** * Default SQL sorting parameter (default null). * * @var string */ protected $_sDefSortField = "oxtitle"; protected function _prepareWhereQuery($aWhere, $sqlFull) { $sQ = parent::_prepareWhereQuery($aWhere, $sqlFull); $sTable = getViewName("d3importconfig"); $iShopId = $this->getConfig()->getShopId(); $sQ .= " AND {$sTable}.oxshopid = '{$iShopId}' "; return $sQ; } }