public function indexAction() { $request = $this->getRequest(); $sestionClient = PR_Session::getSession(PR_Session::SESSION_USER); $CompanyID = $sestionClient['CompanyID']; $clientID = $sestionClient['UserID']; $Oppotunity_PR_Api = new PR_Api_Core_CareerClass(); $getListOpp = $Oppotunity_PR_Api->getListOpportunity(array('CompanyID' => $CompanyID)); $notiClass = new PR_Api_Core_NotiClass(); $messageList = $notiClass->getList($clientID, $limit = 10, $offset = 0); $receivIDs = $Oppotunity_PR_Api->getListReceiveIDbySenderID($clientID); $listCandidate1 = $Oppotunity_PR_Api->getListCandidateByUserID($receivIDs, 3, 0); $listSkill = $Oppotunity_PR_Api->getSkillByCompanyID($CompanyID); $listCandidate = array(); $list = array(); if (!empty($listCandidate1) && count($listCandidate1) > 0) { foreach ($listCandidate1 as $kkk => $listCandidate1Info) { if (!empty($listCandidate1Info['Skills']) && count($listCandidate1Info['Skills']) > 0) { $list = ""; foreach ($listCandidate1Info['Skills'] as $listInfor) { if (!empty($listSkill) && count($listSkill) > 0) { foreach ($listSkill as $keylistskill => $listSkillInfo) { if ($listSkillInfo['SkillID'] == $listInfor['SkillID']) { $list[] = $listSkillInfo['title']; } } } } } if (!empty($list) && count($list) > 0) { $list = array_unique($list); $listCandidate1Info['strTitle'] = $list; $listCandidate[] = $listCandidate1Info; } } } $getTestList_PR_Api_Core = new PR_Api_Core_TestClass(); $resultTestList = $getTestList_PR_Api_Core->getTestList(array('CompanyID' => $CompanyID), 10, 0); $useCS = new PR_Api_Core_NotiClass(); $uselist = $useCS->geAllUser(); $this->view->uselist = $uselist; /*echo "<pre>"; print_r($messageList); echo "</pre>"; die();*/ $this->view->getListOpp = $getListOpp; $this->view->messageList = $messageList; $this->view->listCandidate = $listCandidate; $this->view->resultTestList = $resultTestList; }
public function listAction() { $request = $this->getRequest(); $sestionClient = PR_Session::getSession(PR_Session::SESSION_USER); $clientID = $sestionClient['UserID']; $notiClass = new PR_Api_Core_NotiClass(); $result = $notiClass->getList($clientID); $useCS = new PR_Api_Core_NotiClass(); $uselist = $useCS->geAllUser(); // echo "<pre>"; // echo "client= ";print_r($idCurrentActive); //echo "</pre>";die(); $this->view->result = $result; $this->view->clientIDLogin = $clientID; $this->view->userName = $sestionClient['firstname']; $this->view->uselist = $uselist; }