logo       


CVS: phpwiki/lib/plugin TitleSearch.php,1.21,1.22 WantedPages.php,1.14,1.15: msg#00140

Subject: CVS: phpwiki/lib/plugin TitleSearch.php,1.21,1.22 WantedPages.php,1.14,1.15
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/


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe