/**
  * Tell wether class exists
  * 
  * @param klass $class Class name
  * 
  * @return bool
  */
 static function classExists($class)
 {
     $context = array(__METHOD__, func_get_args());
     if (CFunctionCache::exist($context)) {
         return CFunctionCache::get($context);
     }
     $value = class_exists($class);
     return CFunctionCache::set($context, $value);
 }
 /**
  * Champs d'examen à afficher
  *
  * @return string[] Noms interne des champs
  */
 function getExamFields()
 {
     $context = array(__METHOD__, func_get_args());
     if (CFunctionCache::exist($context)) {
         return CFunctionCache::get($context);
     }
     $fields = array("motif", "rques");
     if (CAppUI::conf("dPcabinet CConsultation show_histoire_maladie")) {
         $fields[] = "histoire_maladie";
     }
     if (CAppUI::conf("dPcabinet CConsultation show_examen")) {
         $fields[] = "examen";
     }
     if (CAppUI::pref("view_traitement")) {
         $fields[] = "traitement";
     }
     if (CAppUI::conf("dPcabinet CConsultation show_conclusion")) {
         $fields[] = "conclusion";
     }
     return CFunctionCache::set($context, $fields);
 }