コード例 #1
0
ファイル: ApiPostcode.php プロジェクト: jasonhai/onehome
 /**
 * @Author: ANH DUNG Oct 27, 2014
 * @Todo: get some value info. It's only map for table ApiPostcode
 * @Param: $postal_code
 * @Param: $key can be:
 *  postal code X(6): key = postal_code
    address type X(1): key = address_type
    building number X(7): key = building_number 
    street key X(7): key = street_key
    building key X(6): key = building_key
 */
 public static function getValueKeyByPostalCode($postal_code, $key)
 {
     $model = ApiPostcode::getByPostalCode($postal_code);
     return ApiPostcode::getValueKeyFromModel($model, $key);
 }