Esempio n. 1
0
 /**
  * @see parent::loadAlertsNotHandled
  */
 function loadAlertsNotHandled($level = null, $tag = null, $perm = PERM_READ)
 {
     if ($tag == "observation") {
         $alert = new CAlert();
         $where = array("object_class" => "= 'CObservationMedicale'", "object_id" => CSQLDataSource::prepareIn($this->loadBackIds("observations")), "level" => "= 'medium'", "handled" => "= '0'", "tag" => "= '" . CObservationMedicale::$tag_alerte . "'");
         return $this->_refs_alerts_not_handled = $alert->loadList($where);
     }
     return parent::loadAlertsNotHandled($level, $tag, $perm);
 }