private function findExperienceInfo($member_id) { $student = new Tnp_Model_Member_Student(); $student->setMember_id($member_id); $student_experience = array(); $student_experience_ids = $student->fetchExperienceIds(); $experience = new Tnp_Model_MemberInfo_Experience(); if (!empty($student_experience_ids)) { foreach ($student_experience_ids as $key => $student_experience_id) { $experience->setStudent_experience_id($student_experience_id); $experience->fetchInfo(); $student_experience[$student_experience_id]['organisation'] = $experience->getOrganisation(); $student_experience[$student_experience_id]['industry_id'] = $experience->getIndustry_id(); $student_experience[$student_experience_id]['functional_area_id'] = $experience->getFunctional_area_id(); $student_experience[$student_experience_id]['role_id'] = $experience->getRole_id(); $student_experience[$student_experience_id]['experience_months'] = $experience->getExperience_months(); $student_experience[$student_experience_id]['experience_years'] = $experience->getExperience_years(); $student_experience[$student_experience_id]['organisation'] = $experience->getOrganisation(); $student_experience[$student_experience_id]['start_date'] = $experience->getStart_date(); $student_experience[$student_experience_id]['end_date'] = $experience->getEnd_date(); $student_experience[$student_experience_id]['is_parttime'] = $experience->getIs_parttime(); $student_experience[$student_experience_id]['description'] = $experience->getDescription(); } } else { $student_experience = false; } return $student_experience; }
/** * Operating Condition : Member Id is set * @param int $student_experience_id * @return object|false Object of Tnp_Model_MemberInfo_Experience */ public function fetchExperienceInfo($student_experience_id) { $member_id = $this->getMember_id(true); $member_exp = new Tnp_Model_MemberInfo_Experience(); $member_exp->setStudent_experience_id($student_experience_id); return $member_exp->fetchInfo(); }