예제 #1
0
 public function getEventsFromMonth($year, $month)
 {
     $events = [];
     $workingTimes = self::convertWorkingTimesToEvents($this->workingTimesDao->getWorkingTimesByMonth(2, $year, $month));
     $orderEvents = self::convertOrdersToEvents($this->orderDao->getOrdersByMonth(2, $year, $month));
     $events = array_merge($events, $workingTimes, $orderEvents);
     return $events;
 }
예제 #2
0
 public function getWorkingTimes($year, $month, $doctorId = 0)
 {
     //TODO Ashto $doctorId focus :)
     $doctorId = 2;
     return $this->workingTimesDao->getWorkingTimesByMonth($doctorId, intval($year), intval($month));
 }