Ejemplo n.º 1
0
 function countAlertsNotHandled($level = null, $tag = null)
 {
     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->_count_alerts_not_handled = $alert->countList($where);
     }
     return parent::countAlertsNotHandled($level, $tag);
 }