Example #1
0
 /**
  * Fetches Batch Id of a Student,
  * Member_id must be set before calling this function 
  * @return int the Batch_id of student
  */
 public function fetchBatchId()
 {
     $member_id = $this->getMember_id(true);
     $student_class_object = new Acad_Model_StudentClass();
     $student_class_object->setMember_id($member_id);
     $batch_identifier_class_id = $student_class_object->fetchBatchIdentifierClassId();
     $class_object = new Acad_Model_Class();
     $class_object->setClass_id($batch_identifier_class_id);
     $class_object->fetchInfo();
     $batch_id = $class_object->getBatch_id();
     return $batch_id;
 }