예제 #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 deleteDayWorkingTimes(\DateTime $date, $doctorId = 0)
 {
     //TODO Ashto $doctorId focus :)
     $doctorId = 2;
     return $this->workingTimesDao->deleteDayWorkingTimes($doctorId, $date);
 }