public function careercreateAction() { $request = $this->getRequest(); $sestionClient = PR_Session::getSession(PR_Session::SESSION_USER); $CompanyID = $sestionClient['CompanyID']; $PR_Api_Core_Career = new PR_Api_Core_CareerClass(); $resultCareerList = $PR_Api_Core_Career->getListCareer(); $resultSkillList = $PR_Api_Core_Career->getListSkill(); $getTestList_PR_Api_Core = new PR_Api_Core_TestClass(); $resultTestList = $getTestList_PR_Api_Core->getTestList(array('CompanyID' => $CompanyID)); $companyInfo = $PR_Api_Core_Career->getCompanyByID($CompanyID); $listCompany = $PR_Api_Core_Career->getCompany(); $listCountry = $PR_Api_Core_Career->getListCountry(); $listExperienced = $PR_Api_Core_Career->getListExperiencedTime(); /* echo "<pre>"; print_r($listCountry); echo "</pre>";die(); */ $this->view->resultCareerList = $resultCareerList; $this->view->resultSkillList = $resultSkillList; $this->view->resultTestList = $resultTestList; $this->view->companyInfo = $companyInfo; $this->view->listCompany = $listCompany; $this->view->listCountry = $listCountry; $this->view->listExperienced = $listExperienced; }
public function matchopportunitiesAction() { $client = PR_Session::getSession(PR_Session::SESSION_USER); $CandidateProfileID = $client['CandidateProfileID']; $PR_Api = new PR_Api_Core_CareerClass(); $skillList = $PR_Api->getListSkill(); $result = $PR_Api->getListOpportunity(); $industryListUnique = array(); $industryList = array(); // $experiencedUnique = array(); $experienced_List = array(); $countryUnique = array(); //$country_List = array(); $cityUnique = array(); $city_List = array(); $country_code = array(); $core = new PR_Api_Core_CandidateClass(); $oppList = array(); if ($result != "") { foreach ($result as $kk => $oppListInfo) { if ($oppListInfo['status'] == 1) { $industryListUnique[] = trim(strtolower($oppListInfo['industry'])); if ($oppListInfo['country'] != "" || !empty($oppListInfo['country'])) { $countryUnique[] = $oppListInfo['country']; } if ($oppListInfo['city'] != "" || !empty($oppListInfo['city'])) { $cityUnique[] = trim(strtolower($oppListInfo['city'])); } /* $hadApplied = $core->opportunityCandidateHadApplied($oppListInfo['OpportunityID'],$CandidateProfileID); if($hadApplied){ $oppListInfo['hadApplied'] =true ; $oppList[] = $oppListInfo; } else { $oppListInfo['hadApplied'] =false ; $oppList[] = $oppListInfo; } */ } // $experiencedUnique[] = $oppListInfo['experienced']; } $industryListUnique = array_unique($industryListUnique); $cityUnique = array_unique($cityUnique); foreach ($industryListUnique as $industryInfo) { $industryList[] = ucwords($industryInfo); } foreach ($cityUnique as $cityInfo) { $city_List[] = ucwords($cityInfo); } $country_code = array_unique($countryUnique); } $experienced_List = $PR_Api->getListExperiencedTime(); $country_List = $core->getCountryList($country_code); $candID = $client['CandidateProfileID']; $rslCanID = $core->get_candidate_list($candID); /*echo "<pre>"; print_r($rslCanID[0]); echo "<pre>"; die(); */ $this->view->candidateInfo = $rslCanID[0]; $this->view->skillList = $skillList; //$this->view->oppList = $oppList; $this->view->industryList = $industryList; $this->view->experienced_List = $experienced_List; $this->view->country_List = $country_List; $this->view->city_List = $city_List; $this->view->CandidateProfileID = $client['CandidateProfileID']; // $this->render('profile'); }