Пример #1
0
 private function twelfthSearch($twelfth_fields)
 {
     $twelfth_range_fields = array('percentage' => '');
     $twelfth_range_params = array_intersect_key($twelfth_fields, $twelfth_range_fields);
     $twelfth_exact_params = array_diff_key($twelfth_fields, $twelfth_range_params);
     $twelfth = new Acad_Model_Qualification_Twelfth();
     $twelfth_matches = $twelfth->search($twelfth_exact_params, $twelfth_range_params);
     return $twelfth_matches;
 }
Пример #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;
     }
 }