Beispiel #1
0
 function loadLastAllaitement()
 {
     if (!CModule::getActive("maternite")) {
         return;
     }
     $allaitement = new CAllaitement();
     $where = array();
     $where["patient_id"] = "= '{$this->_id}'";
     $where[] = "date_fin IS NULL OR date_fin >= '" . CMbDT::dateTime() . "'";
     $allaitement->loadObject($where, "date_fin DESC");
     return $this->_ref_last_allaitement = $allaitement;
 }