コード例 #1
0
ファイル: AddressFormat.php プロジェクト: jicheng17/pengwine
 /**
  * Returns address format by country if not defined using default country
  *
  * @param Integer PS_COUNTRY.id
  * @return String field address format
  */
 public static function getAddressCountryFormat($id_country = 0)
 {
     $id_country = (int) $id_country;
     $tmp_obj = new AddressFormat();
     $tmp_obj->id_country = $id_country;
     $out = $tmp_obj->getFormat($tmp_obj->id_country);
     unset($tmp_obj);
     return $out;
 }
コード例 #2
0
 /**
  * Returns address format by country if not defined using default country
  * 
  * @param Integer PS_COUNTRY.id 
  * @return String field address format
  */
 public static function getAddressCountryFormat($id_country = 0)
 {
     $out = '';
     $id_country = (int) $id_country;
     if ($id_country <= 0) {
         $selectedCountry = (int) Configuration::get('PS_COUNTRY_DEFAULT');
     }
     $tmp_obj = new AddressFormat();
     $tmp_obj->id_country = $id_country;
     $out = $tmp_obj->getFormat($tmp_obj->id_country);
     unset($tmp_obj);
     return $out;
 }