Exemplo n.º 1
0
 private function tenthSearch($tenth_fields)
 {
     $tenth_range_fields = array('percentage' => '');
     $tenth_range_params = array_intersect_key($tenth_fields, $tenth_range_fields);
     $tenth_exact_params = array_diff_key($tenth_fields, $tenth_range_params);
     $matric = new Acad_Model_Qualification_Matric();
     $matric_matches = $matric->search($tenth_exact_params, $tenth_range_params);
     return $matric_matches;
 }
Exemplo n.º 2
0
 /**
  * Fetches Qualification Details of a member
  * 
  * @param int $qualification_id
  * @return Qualification|false object of Acad_Model_Qualification_Matric|Acad_Model_Qualification_Twelfth|Acad_Model_Qualification_Diploma|Acad_Model_Qualification_Btech|Acad_Model_Qualification_Mtech
  */
 public function fetchQualificationInfo($qualification_id)
 {
     $member_id = $this->getMember_id(true);
     $qualification_object = new Acad_Model_Qualification();
     $qualification_object->setQualification_id($qualification_id);
     $qualification = $qualification_object->fetchInfo();
     $qualification_name = $qualification_object->getQualification_name();
     $qualification_detail = array('qualification_id' => $qualification_id, 'qualification_name' => $qualification_name);
     switch ($qualification_name) {
         case 'MATRIC':
             $matric_object = new Acad_Model_Qualification_Matric();
             $matric_object->setMember_id($member_id);
             $matric_object->setQualification_id($qualification_detail['qualification_id']);
             return $matric_object->fetchInfo();
             break;
         case 'TWELFTH':
             $twelfth_object = new Acad_Model_Qualification_Twelfth();
             $twelfth_object->setMember_id($member_id);
             $twelfth_object->setQualification_id($qualification_detail['qualification_id']);
             return $twelfth_object->fetchInfo();
             break;
         case 'DIPLOMA':
             $diploma_object = new Acad_Model_Qualification_Diploma();
             $diploma_object->setMember_id($member_id);
             $diploma_object->setQualification_id($qualification_detail['qualification_id']);
             return $diploma_object->fetchInfo();
             break;
         case 'BTECH':
             $btech_object = new Acad_Model_Qualification_Btech();
             $btech_object->setMember_id($member_id);
             $btech_object->setQualification_id($qualification_detail['qualification_id']);
             return $btech_object->fetchInfo();
             break;
         case 'MTECH':
             $mtech_object = new Acad_Model_Qualification_Mtech();
             $mtech_object->setMember_id($member_id);
             $mtech_object->setQualification_id($qualification_detail['qualification_id']);
             return $mtech_object->fetchInfo();
             break;
         default:
             return false;
             break;
     }
 }