2024-06-26 13:42:37 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This Software is the property of Data Development and is protected
|
|
|
|
* by copyright law - it is NOT Freeware.
|
|
|
|
*
|
|
|
|
* Any unauthorized use of this software without a valid license
|
|
|
|
* is a violation of the license agreement and will be prosecuted by
|
|
|
|
* civil and criminal law.
|
|
|
|
*
|
|
|
|
* http://www.shopmodule.com
|
|
|
|
*
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
|
|
|
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
|
|
|
|
* @link http://www.oxidmodule.com
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace D3\Extsearch\Application\Controller\Admin\Popups;
|
|
|
|
|
|
|
|
use OxidEsales\Eshop\Application\Model\Vendor;
|
|
|
|
|
|
|
|
class d3_attribute2vendor_extsearch_ajax extends d3_attribute_extsearch_ajax_abstract
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Columns array
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $_aColumns = [
|
|
|
|
'container1' => [ // field , table, visible, multilanguage, ident
|
|
|
|
['oxtitle', 'oxvendor', 1, 1, 0],
|
|
|
|
['oxshortdesc', 'oxvendor', 1, 1, 0],
|
|
|
|
['oxid', 'oxvendor', 0, 0, 0],
|
|
|
|
['oxid', 'oxvendor', 0, 0, 1],
|
|
|
|
],
|
|
|
|
'container2' => [
|
|
|
|
['oxtitle', 'oxvendor', 1, 1, 0],
|
|
|
|
['oxshortdesc', 'oxvendor', 1, 1, 0],
|
|
|
|
['oxid', 'oxvendor', 0, 0, 0],
|
|
|
|
['oxid', 'd3extsearch_attribute2object', 0, 0, 1],
|
|
|
|
['oxid', 'oxvendor', 0, 0, 1],
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getObjectModel()
|
|
|
|
{
|
|
|
|
return Vendor::class;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getLeftColumnTitle()
|
|
|
|
{
|
|
|
|
return 'D3_EXTSEARCH_AJAX_ALLVENDORS';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRightColumnTitle()
|
|
|
|
{
|
|
|
|
return 'D3_EXTSEARCH_AJAX_SETVENDORS';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getObjectIdField()
|
|
|
|
{
|
|
|
|
return 'oxvendor.oxid';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getContainerKey()
|
|
|
|
{
|
|
|
|
return 'd3_attribute2vendor_extsearch';
|
|
|
|
}
|
|
|
|
}
|