Esempio n. 1
0
 public function addStudentRaport(StudentRaport $l)
 {
     $this->collStudentRaports[] = $l;
     $l->setStudentCourse($this);
 }
Esempio n. 2
0
 public function executeUpdateDevelopment()
 {
     $student_id = $this->getRequestParameter('student_id');
     $student = StudentPeer::retrieveByPK($student_id);
     $this->forward404Unless($student);
     $this->student = $student;
     $student_course = new StudentCourse();
     $student_course->setStudentId($student->getId());
     $student_course->setClassGroupId($student->getClassGroupId());
     $student_course->setAcademicCalendarId($student->getAcademicCalendarId());
     $student_course->setGradeComponentId($this->getRequestParameter('grade_component_id'));
     $student_course->save();
     $g = new StudentRaport();
     $g->setStudentCourse($student_course);
     $g->setGradeComponentId($this->getRequestParameter('grade_component_id'));
     $g->setGrade($this->getRequestParameter('grade'));
     $g->save();
     return $this->redirect('student_score/listDev?student_id=' . $student->getId());
 }