Exemple #1
0
 public function Addregion($request)
 {
     try {
         $mapper = new Application_Model_RegionDataMapper();
         $regionObj = new Application_Model_Region();
         $regionObj->setCode($request->regioncode);
         $regionObj->setDescription($request->regiondesc);
         $regionObj->setStateId($request->stateid);
         $regionObj->setStatus(1);
         $regions = $mapper->AddRegion($regionObj);
         return $regions;
     } catch (Exception $ex) {
         Rdine_Logger_FileLogger::info($ex->getMessage());
         throw new Exception($ex->getMessage());
     }
 }