Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14270/plugin
Modified Files:
TitleSearch.php WantedPages.php
Log Message:
add case_exact search
Index: TitleSearch.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/TitleSearch.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -2 -b -p -d -r1.21 -r1.22
--- TitleSearch.php 17 Feb 2004 12:11:36 -0000 1.21
+++ TitleSearch.php 23 Nov 2004 13:35:49 -0000 1.22
@@ -42,10 +42,14 @@ extends WikiPlugin
function getDefaultArguments() {
- return array('s' => false,
+ return array_merge
+ (
+ PageList::supportedArgs(), // paging and more.
+ array('s' => false,
'auto_redirect' => false,
'noheader' => false,
'exclude' => '',
- 'info' => false
- );
+ 'info' => false,
+ 'caseexact' => false
+ ));
}
// info arg allows multiple columns
@@ -60,9 +64,8 @@ extends WikiPlugin
extract($args);
- $query = new TextSearchQuery($s);
- $pages = $dbi->titleSearch($query);
-
- $pagelist = new PageList($info, $exclude);
+ $query = new TextSearchQuery($s, $caseexact);
+ $pages = $dbi->titleSearch($query, $caseexact);
+ $pagelist = new PageList($info, $exclude, $args);
while ($page = $pages->next()) {
$pagelist->addPage($page);
@@ -86,4 +89,7 @@ extends WikiPlugin
// $Log$
+// Revision 1.22 2004/11/23 13:35:49 rurban
+// add case_exact search
+//
// Revision 1.21 2004/02/17 12:11:36 rurban
// added missing 4th basepage arg at plugin->run() to almost all plugins. This
caused no harm so far, because it was silently dropped on normal usage. However
on plugin internal ->run invocations it failed. (InterWikiSearch,
IncludeSiteMap, ...)
Index: WantedPages.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/WantedPages.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -2 -b -p -d -r1.14 -r1.15
--- WantedPages.php 20 Nov 2004 17:35:58 -0000 1.14
+++ WantedPages.php 23 Nov 2004 13:35:49 -0000 1.15
@@ -141,4 +141,7 @@ class _PageList_Column_WantedPages_wante
// $Log$
+// Revision 1.15 2004/11/23 13:35:49 rurban
+// add case_exact search
+//
// Revision 1.14 2004/11/20 17:35:58 rurban
// improved WantedPages SQL backends
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
|