make all functions static

This commit is contained in:
Uwe Steinmann 2016-07-05 17:29:58 +02:00
parent 9b21d8a509
commit 7dcee81c51

View File

@ -38,7 +38,7 @@ class SeedDMS_Lucene_Indexer {
} }
} /* }}} */ } /* }}} */
function create($luceneDir) { /* {{{ */ static function create($luceneDir) { /* {{{ */
$index = Zend_Search_Lucene::create($luceneDir); $index = Zend_Search_Lucene::create($luceneDir);
return($index); return($index);
} /* }}} */ } /* }}} */
@ -47,7 +47,7 @@ class SeedDMS_Lucene_Indexer {
* Do some initialization * Do some initialization
* *
*/ */
function init($stopWordsFile='') { /* {{{ */ static function init($stopWordsFile='') { /* {{{ */
$analyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive(); $analyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive();
if($stopWordsFile && file_exists($stopWordsFile)) { if($stopWordsFile && file_exists($stopWordsFile)) {
$stopWordsFilter = new Zend_Search_Lucene_Analysis_TokenFilter_StopWords(); $stopWordsFilter = new Zend_Search_Lucene_Analysis_TokenFilter_StopWords();