mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 21:16:07 +00:00
make all functions static
This commit is contained in:
parent
9b21d8a509
commit
7dcee81c51
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user