oxerptype_country.php

Go to the documentation of this file.
00001 <?php
00002 
00003 require_once 'oxerptype.php';
00004 
00008 class oxERPType_Country extends oxERPType
00009 {
00014     protected $_aFieldListVersions = array(
00015         '1' => array(
00016             'OXID'           => 'OXID',
00017             'OXACTIV'       => 'OXACTIV',
00018             'OXTITLE'       => 'OXTITLE',
00019             'OXISOALPHA2'   => 'OXISOALPHA2',
00020             'OXISOALPHA3'   => 'OXISOALPHA3',
00021             'OXUNNUM3'      => 'OXUNNUM3',
00022             'OXORDER'       => 'OXORDER',
00023             'OXSHORTDESC'   => 'OXSHORTDESC',
00024             'OXLONGDESC'    => 'OXLONGDESC',
00025             'OXTITLE_1'     => 'OXTITLE_1',
00026             'OXTITLE_2'     => 'OXTITLE_2',
00027             'OXTITLE_3'     => 'OXTITLE_3',
00028             'OXSHORTDESC_1' => 'OXSHORTDESC_1',
00029             'OXSHORTDESC_2' => 'OXSHORTDESC_2',
00030             'OXSHORTDESC_3' => 'OXSHORTDESC_3',
00031             'OXLONGDESC_1'  => 'OXLONGDESC_1',
00032             'OXLONGDESC_2'  => 'OXLONGDESC_2',
00033             'OXLONGDESC_3'  => 'OXLONGDESC_3'
00034          ),
00035         '2' => array(
00036             'OXID' => 'OXID',
00037             'OXACTIVE' => 'OXACTIVE',
00038             'OXTITLE' => 'OXTITLE',
00039             'OXISOALPHA2' => 'OXISOALPHA2',
00040             'OXISOALPHA3' => 'OXISOALPHA3',
00041             'OXUNNUM3' => 'OXUNNUM3',
00042             'OXORDER' => 'OXORDER',
00043             'OXSHORTDESC' => 'OXSHORTDESC',
00044             'OXLONGDESC' => 'OXLONGDESC',
00045             'OXTITLE_1' => 'OXTITLE_1',
00046             'OXTITLE_2' => 'OXTITLE_2',
00047             'OXTITLE_3' => 'OXTITLE_3',
00048             'OXSHORTDESC_1' => 'OXSHORTDESC_1',
00049             'OXSHORTDESC_2' => 'OXSHORTDESC_2',
00050             'OXSHORTDESC_3' => 'OXSHORTDESC_3',
00051             'OXLONGDESC_1' => 'OXLONGDESC_1',
00052             'OXLONGDESC_2' => 'OXLONGDESC_2',
00053             'OXLONGDESC_3' => 'OXLONGDESC_3',
00054             'OXVATSTATUS' => 'OXVATSTATUS'
00055         ),
00056     );
00057 
00063     public function __construct()
00064     {
00065         parent::__construct();
00066 
00067         $this->_sTableName = 'oxcountry';
00068         $this->_sShopObjectName = 'oxcountry';
00069     }
00070 
00080     protected function getSqlFieldName($sField, $iLanguage = 0, $iShopID = 1)
00081     {
00082         if ('1' == oxERPBase::getUsedDbFieldsVersion()) {
00083             switch ($sField) {
00084                 case 'OXACTIV':
00085                     return "OXACTIVE as OXACTIV";
00086                     break;
00087             }
00088         }
00089         return parent::getSqlFieldName($sField, $iLanguage, $iShopID);
00090     }
00091 }