Beispiel #1
0
 /**
  * This method returns the condifuration for the period.
  *
  * @param CareerSchoolYearPeriod $period
  * @return CourseSubjectConfiguration
  */
 public function getConfigurationForPeriod(CareerSchoolYearPeriod $period)
 {
     $c = new Criteria();
     $c->add(CourseSubjectConfigurationPeer::COURSE_SUBJECT_ID, $this->getId());
     $c->add(CourseSubjectConfigurationPeer::CAREER_SCHOOL_YEAR_PERIOD_ID, $period->getId());
     return CourseSubjectConfigurationPeer::doSelectOne($c);
 }
Beispiel #2
0
 public function getConductPeriod(CareerSchoolYearPeriod $period)
 {
     $scsy = StudentCareerSchoolYearPeer::getCurrentForStudentAndCareerSchoolYear($this, $period->getCareerSchoolYear());
     return StudentCareerSchoolYearConductPeer::retriveByStudentCareerSchoolYearAndPeriod($scsy, $period);
 }