oxerptype_vendor.php
Go to the documentation of this file.00001 <?php
00002
00003 require_once 'oxerptype.php';
00004
00008 class oxERPType_Vendor extends oxERPType
00009 {
00014 protected $_aFieldListVersions = array(
00015 '1' => array(
00016 'OXID' => 'OXID',
00017 'OXSHOPID' => 'OXSHOPID',
00018 'OXSHOPINCL' => 'OXSHOPINCL',
00019 'OXSHOPEXCL' => 'OXSHOPEXCL',
00020 'OXACTIV' => 'OXACTIV',
00021 'OXICON' => 'OXICON',
00022 'OXTITLE' => 'OXTITLE',
00023 'OXSHORTDESC' => 'OXSHORTDESC',
00024 'OXTITLE_1' => 'OXTITLE_1',
00025 'OXSHORTDESC_1' => 'OXSHORTDESC_1',
00026 'OXTITLE_2' => 'OXTITLE_2',
00027 'OXSHORTDESC_2' => 'OXSHORTDESC_2',
00028 'OXTITLE_3' => 'OXTITLE_3',
00029 'OXSHORTDESC_3' => 'OXSHORTDESC_3',
00030 'OXSEOID' => 'OXSEOID',
00031 'OXSEOID_1' => 'OXSEOID_1',
00032 'OXSEOID_2' => 'OXSEOID_2',
00033 'OXSEOID_3' => 'OXSEOID_3'
00034 ),
00035 '2' => array(
00036 'OXID' => 'OXID',
00037 'OXSHOPID' => 'OXSHOPID',
00038 'OXSHOPINCL' => 'OXSHOPINCL',
00039 'OXSHOPEXCL' => 'OXSHOPEXCL',
00040 'OXACTIVE' => 'OXACTIVE',
00041 'OXICON' => 'OXICON',
00042 'OXTITLE' => 'OXTITLE',
00043 'OXSHORTDESC' => 'OXSHORTDESC',
00044 'OXTITLE_1' => 'OXTITLE_1',
00045 'OXSHORTDESC_1' => 'OXSHORTDESC_1',
00046 'OXTITLE_2' => 'OXTITLE_2',
00047 'OXSHORTDESC_2' => 'OXSHORTDESC_2',
00048 'OXTITLE_3' => 'OXTITLE_3',
00049 'OXSHORTDESC_3' => 'OXSHORTDESC_3',
00050 'OXSHOWSUFFIX' => 'OXSHOWSUFFIX',
00051 ),
00052 );
00053
00059 public function __construct()
00060 {
00061 parent::__construct();
00062
00063 $this->_sTableName = 'oxvendor';
00064 $this->_sShopObjectName = 'oxvendor';
00065 }
00066
00076 protected function getSqlFieldName($sField, $iLanguage = 0, $iShopID = 1)
00077 {
00078 if ('1' == oxERPBase::getUsedDbFieldsVersion()) {
00079 switch ($sField) {
00080 case 'OXSEOID':
00081 case 'OXSEOID_1':
00082 case 'OXSEOID_2':
00083 case 'OXSEOID_3':
00084 return "'' as $sField";
00085 break;
00086 case 'OXACTIV':
00087 return "OXACTIVE as OXACTIV";
00088 break;
00089 }
00090 }
00091 return parent::getSqlFieldName($sField, $iLanguage, $iShopID);
00092 }
00093 }