/** * * @param sfWebRequest $request * @return unknown_type */ public function executeDeleteCompanyLocation(sfWebRequest $request) { if ($request->isMethod('post')) { if (count($request->getParameter('chkLocID')) > 0) { $companyService = new CompanyService(); $companyService->deleteCompanyLocation($request->getParameter('chkLocID')); $this->setMessage('SUCCESS', array(TopLevelMessages::DELETE_SUCCESS)); } else { $this->setMessage('NOTICE', array(TopLevelMessages::SELECT_RECORDS)); } $this->redirect('admin/listCompanylocation'); } }