private function _getEducationList() { $educationService = new EducationService(); $educationList = $educationService->getEducationList(); $list = array("" => "-- " . __('Select') . " --"); foreach ($educationList as $education) { $list[$education->getId()] = $education->getName(); } return $list; }
private function _getEducationLevel($educationId) { $educationService = new EducationService(); $educationList = $educationService->getEducationList(); foreach ($educationList as $education) { if ($education->getId() == $educationId) { return $education->getName(); } } }
/** * Delete Employee status * @param sfWebRequest $request * @return unknown_type */ public function executeDeleteLicenses(sfWebRequest $request) { if (count($request->getParameter('chkLocID')) > 0) { $educationService = new EducationService(); $educationService->deleteLicenses($request->getParameter('chkLocID')); $this->setMessage('SUCCESS', array(TopLevelMessages::DELETE_SUCCESS)); } else { $this->setMessage('NOTICE', array(TopLevelMessages::SELECT_RECORDS)); } $this->redirect('admin/listLicenses'); }