Пример #1
0
 /**
  * @return ArrayList
  */
 public function getFilteredClasses($location = '', $level = '', $company = '', $start_date = '', $end_date = '')
 {
     $res = new ArrayList();
     $courses_dto = $this->course_repository->getFilteredClasses(DateTimeUtils::getCurrentDate(), $location, $level, $company, $start_date, $end_date);
     foreach ($courses_dto as $dto) {
         if ($this->training_manager->isActive($dto->getTrainingID())) {
             $res->push(new CourseViewModel($dto));
         }
     }
     return $res;
 }