示例#1
0
 public function AddCity($request)
 {
     try {
         $mapper = new Application_Model_CityDataMapper();
         $NeighObj = new Application_Model_City();
         $NeighObj->setCode($request->citycode);
         $NeighObj->setDescription($request->citydesc);
         $NeighObj->setRegionId($request->regionid);
         $NeighObj->setStatus(1);
         $neighbors = $mapper->AddCity($NeighObj);
         return $neighbors;
     } catch (Exception $ex) {
         Rdine_Logger_FileLogger::info($ex->getMessage());
         throw new Exception($ex->getMessage());
     }
 }