コード例 #1
0
ファイル: migrator.php プロジェクト: naka211/studiekorrektur
 private function getCountryIdByName($name)
 {
     if (empty($this->_countries[$name])) {
         $this->_countries[$name] = Shopfunctions::getCountryIDByName($name);
     }
     return $this->_countries[$name];
 }
コード例 #2
0
ファイル: virtuemart.php プロジェクト: naka211/compac
 private function getCountryIdByName($name)
 {
     if ($name == 'FXX') {
         $name = 'FRA';
     }
     //France métropolotaine was removed
     if ($name == 'XJE') {
         $name = 'JEY';
     }
     //Jersey code was changed
     //if ($name=='MNE') $name='MNE'; //Montenegro was removed
     if (!class_exists('ShopFunctions')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'shopfunctions.php';
     }
     if (empty($this->_countries[$name])) {
         $this->_countries[$name] = Shopfunctions::getCountryIDByName($name);
     }
     return $this->_countries[$name];
 }