/** * 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; default: $wrapper = new CSearchFileWrapper($content, $this->_id); $body = $wrapper->run(); } } return $body; }