public static function prepareHouseExtInfo(&$out) { if (!empty($out['houseIds'])) { $imgIllegal = array(); foreach ($out['houseIds'] as $houseType => $houseIds) { $illegalNum = Bll_House_JpHouseInfo::get_back_num(array_keys($houseIds), $houseType); if ($illegalNum) { foreach ($illegalNum as $h_id => $h_value) { $imgIllegal[$h_id]['img_illegal_num'] = $h_value; $imgIllegal[$h_id]['is_img_illegal'] = $imgIllegal[$h_id]['img_illegal_num'] > 0 ? 1 : 0; } } } $out['imgIllegal'] = $imgIllegal; $propertys = $propertyOfficeNames = $propertyShopNames = array(); $propertyOfficeNames = Bll_House_JpHouseInfo::getHouseIdxOfficePropertyNames(array_merge((array) $out['houseIds'][Model_House_JpHouseIdx::ENUM_HOUSE_TYPE_OFFICE_RENT], (array) $out['houseIds'][Model_House_JpHouseIdx::ENUM_HOUSE_TYPE_OFFICE_SALE])); $propertyShopNames = Bll_House_JpHouseInfo::getHouseIdxShopPropertyNames(array_merge((array) $out['houseIds'][Model_House_JpHouseIdx::ENUM_HOUSE_TYPE_SHOP_RENT], (array) $out['houseIds'][Model_House_JpHouseIdx::ENUM_HOUSE_TYPE_SHOP_SALE])); $out['housePropertys'] = (array) $propertyOfficeNames['housePropertyNames'] + (array) $propertyShopNames['housePropertyNames']; $out['propertys'] = (array) $propertyOfficeNames['propertys'] + (array) $propertyShopNames['propertys']; $out['BaseDomain'] = "http://my." . APF::get_instance()->get_config('base_domain') . '/jinpu'; } }