if (class_exists("COsoftDossier")) { $osoft_dossier = new COsoftDossier(false); $includeInfosFile = $osoft_dossier->toHTML($raw_content); $show_editor = false; break; } case "text/medistory-form": if (class_exists("CMedistoryImprime")) { $includeInfosFile = CMedistoryImprime::toHTML($raw_content); $show_editor = false; $display_as_is = true; break; } case "application/vnd.surgica.form": if (class_exists("CSurgicaDoc")) { $includeInfosFile = CSurgicaDoc::toHTML($raw_content); $show_editor = false; $display_as_is = true; break; } case "text/ami-patient-text": if (class_exists("CAMIDocument")) { $includeInfosFile = CAMIDocument::toHTML($raw_content); $show_editor = false; $display_as_is = true; break; } case "text/plain": $includeInfosFile = "<pre>" . CMbString::htmlSpecialChars($raw_content) . "</pre>"; break; case "text/html":
/** * Redesign the content of the body you will index * * @param string $content The filename you want to index * * @return string */ function getIndexableBody($content) { $body = " "; if (substr($this->file_type, 0, 6) == 'image/') { $body = $this->file_name; } else { switch ($this->file_type) { case 'text/osoft': $body = $this->getBinaryContent(); $osoft_histo = new COsoftHistorique(false); $body = $osoft_histo->toHTML($body); $body = strip_tags($body); break; case 'application/osoft': $body = $this->getBinaryContent(); $osoft_dossier = new COsoftDossier(false); $body = $osoft_dossier->toHTML($body); $body = strip_tags($body); break; case 'application/vnd.surgica.form': $body = $this->getBinaryContent(); $body = CSurgicaDoc::toHTML($body); break; default: $wrapper = new CSearchFileWrapper($content, $this->_id); $body = $wrapper->run(); } } return $body; }