From 8875135da82d64a20bf0bbd276a268c89563c4ef Mon Sep 17 00:00:00 2001 From: rurban Date: Sun, 11 Sep 2005 14:19:44 +0000 Subject: [PATCH] enable LIMIT support for fulltext search git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4819 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiDB.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/WikiDB.php b/lib/WikiDB.php index a46f2a876..cb6d24485 100644 --- a/lib/WikiDB.php +++ b/lib/WikiDB.php @@ -1,5 +1,5 @@ _backend->text_search($search, true); - return new WikiDB_PageIterator($this, $result); + function fullSearch($search, $sortby='pagename', $limit=false, $exclude=false) { + $result = $this->_backend->text_search($search, true, $sortby, $limit, $exclude); + return new WikiDB_PageIterator($this, $result, + array('exclude' => $exclude, + 'limit' => $limit)); } /** @@ -2188,6 +2190,9 @@ function _sql_debuglog_shutdown_function() { } // $Log: not supported by cvs2svn $ +// Revision 1.134 2005/09/10 21:28:10 rurban +// applyFilters hack to use filters after methods, which do not support them (titleSearch) +// // Revision 1.133 2005/08/27 09:39:10 rurban // dumphtml when not at admin page: dump the current or given page // -- 2.45.0