Пример #1
0
 public function __construct(Application_Model_Medical_Doctor $doctor, DateTime $date)
 {
     $this->_doctor = $doctor;
     $this->_scheduleDate = $date;
     $this->_reservationService = new MedOptima_Service_Doctor_Reservation($doctor);
     $this->_workTimeList = $this->_doctor->getWorkTimeList($date);
 }
Пример #2
0
 private function _initWorkTimeList(stdClass $data)
 {
     $this->_workTimeService = new MedOptima_Service_Doctor_WorkTime();
     if ($this->_entity->getId() != 0) {
         $this->_workTimeService->removeList($this->_entity->getWorkTimeList());
     }
     $this->_workTimeList = $this->_workTimeService->createListFromArray($this->_entity, $data->work_time_list);
 }