Exemplo n.º 1
0
 public function hasReservationsBetween(DateTime $from, DateTime $to, $excludeReservations = array())
 {
     $conditions = new Application_Model_Medical_Reservation_Search_Conditions();
     $conditions->setDoctor($this->_doctor);
     $conditions->setTimeOverlapsWith($from, $to);
     $conditions->exceptDeclined();
     $conditions->exceptDeclinedByVisitor();
     $search = new RM_Entity_Search_Entity('Application_Model_Medical_Reservation');
     $search->addCondition($conditions);
     $results = $search->getResults();
     foreach ($results as $key => $reservation) {
         if (in_array($reservation->getId(), $excludeReservations)) {
             unset($results[$key]);
         }
     }
     return !empty($results);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct('Application_Model_Medical_Advice');
     return $this;
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct('Application_Model_Feedback');
     return $this;
 }