4,251
社区成员
发帖
与我相关
我的任务
分享
$country = new DatabaseObject_Country($this->db);
$address = new DatabaseObject_Address($this->db);
//...
if($country->addr_country_cd == 65)
{
$address->load($this->db);
$address->addr_country_cd = 'Singapore';
}// == 86 then CHINA, 44 then UK etc.
//....
if ($dbcountry->load($address->addr_country_cd, Constants::FIELD_IDD))
{
$address->addr_country_cd = $dbcountry->name;
$address->addr_building = $address->getProfile("addr_building");
$address->addr_unit_no = $address->getProfile("addr_unit_no");
}