Beispiel #1
0
 /**
  * prepareStudents function
  * function to get student accal and set to $this->students
  * Have to set Academic Calendar and Class Group before call this function
  * @return array
  */
 public function prepareStudents()
 {
     $this->studentsCount = StudentAccalPeer::getStudentClassCount($this->getAcademicCalendar()->getId(), $this->getClassGroup()->getId());
     if ($this->studentsCount > 0) {
         $this->students = StudentAccalPeer::getStudentClass($this->getAcademicCalendar()->getId(), $this->getClassGroup()->getId());
         return true;
     } else {
         $this->students = false;
         return false;
     }
 }