BUG removing content method again, since it doesn't work reliably

This commit is contained in:
Julian Seidenberg 2013-05-01 17:48:53 +12:00
parent f02303793d
commit 6ecfa61ca1

View File

@ -802,19 +802,6 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
$file->delete();
}
/**
* Get Content For FullTextSearch module (using Solr) */
function getContent() {
if (class_exists('FileTextExtractor')) {
// Determine which extractor can process this file.
$extractor = FileTextExtractor::for_file($this->owner->FullPath);
if (!$extractor) return null;
$text = $extractor->getContent($this->owner->FullPath);
return $text;
}
}
}
class DMSDocument_Controller extends Controller {