Beispiel #1
0
 /**
  *Returns filter values in json format
  **/
 public function getFiltersJson($request)
 {
     try {
         $cusineMapper = new Application_Model_RestaurantTypebdMapper();
         $cusineData = $cusineMapper->getCusinesFilter();
         $jsonData = array();
         $restaurant_dining_style_bdMapper = new Application_Model_RestaurantDiningStylebdMapper();
         $diningStyleList = $restaurant_dining_style_bdMapper->getDinningStyle();
         $pricebdMapper = new Application_Model_PriceMapper();
         $placeId = $request->getPost('placeId');
         $locationbdMapper = new Application_Model_LocationboundariesMapper();
         $country_id = $locationbdMapper->getCountryId($placeId);
         $pricebdData = $pricebdMapper->getPriceFilter($country_id);
         $jsonData['data'] = array();
         $jsonData['data']['diningStyle'] = $diningStyleList;
         $jsonData['data']['cusine'] = $cusineData;
         $jsonData['data']['costfor2'] = $pricebdData;
         return json_encode($jsonData);
     } catch (Exception $ex) {
         Rdine_Logger_FileLogger::info($ex->getMessage());
         throw new Exception($ex->getMessage());
     }
 }