public function myprofileAction() { $client = PR_Session::getSession(PR_Session::SESSION_USER); $UserID = $client["UserID"]; $api_candidate = new PR_Api_Core_CandidateClass(); $getUserArray = $api_candidate->getCandidateInfo($UserID); $this->view->client = $getUserArray; $Candidateprofile_ID = $getUserArray["CandidateProfileID"]; $getCandidates = $api_candidate->getCandidateProfile($Candidateprofile_ID); $this->view->getCandidates = $getCandidates; $SkillName = $api_candidate->getList_CandidateSkillsOnly($UserID); $Skills = array(); if (!empty($SkillName) || $SkillName != "") { foreach ($SkillName as $key => $values) { $Skills[$key] = $values; } } $this->view->SkillName = $Skills; $portfolio = $api_candidate->getListCandidatePortfolio($UserID); $this->view->Portfolio = $portfolio; $interest = $api_candidate->getListInterest_candidateprofile($Candidateprofile_ID); $this->view->interest = $interest; // $CandidateEmployment=array(); // if(!empty($getCandidates["CandidateEmploymentID"])||$getCandidates["CandidateEmploymentID"]!="") // { // foreach($getCandidates["CandidateEmploymentID"] as $key=>$values ) // { // $CandidateEmployment[$key]=$values; // } //} // $this->view->CandidateEmployment=$CandidateEmployment; //$Education = $api_candidate->getCandidateEducationList(2); //$this->view->Education=$Education; //echo ("interest:<pre>");print_r($interest);echo("</pre>"); $this->render('myprofile'); }
public function careermatchPremiumAccountAction() { $this->_helper->layout->disableLayout(); $client = PR_Session::getSession(PR_Session::SESSION_USER); $CandidateProfileID = $client['CandidateProfileID']; $request = $this->getRequest(); $params = $this->getRequest()->getParams(); if (isset($params['skill_match_premium'])) { $skill_match_premium = $request->getParam("skill_match_premium", ""); } else { $skill_match_premium = array(); } if (isset($params['keyword_match_premium'])) { $keyword_match_premium = $request->getParam("keyword_match_premium", ""); } else { $keyword_match_premium = array(); } $PR_Api = new PR_Api_Core_CareerClass(); $listCandidateID = $PR_Api->getCandidateProfileIDsForCareerMatchPremiumAccount($keyword_match_premium, $skill_match_premium); $result = $PR_Api->getCandidateProfiles_byProfileIDs($listCandidateID); $candidateInfo = array(); if ($result) { $PR_Api_CandidateClass = new PR_Api_Core_CandidateClass(); foreach ($result as $k => $info) { $skID = $PR_Api_CandidateClass->getList_CandidateSkillsOnly($info['UserID']); $sk = array(); if ($skID) { foreach ($skID as $key => $skInfo) { $sk[] = $skInfo['SkillName']; } } else { $sk[] = ""; } $info['skillName'] = $sk; $candidateInfo[] = $info; } } $this->view->CandidateProfileID = $CandidateProfileID; $this->view->result = $candidateInfo; }