Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

CVS: phpwiki/lib/plugin AllPages.php,1.17,1.18: msg#00030

web.wiki.phpwiki.checkins

Subject: CVS: phpwiki/lib/plugin AllPages.php,1.17,1.18

Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25318/plugin

Modified Files:
AllPages.php
Log Message:
PageList sortby support in PearDB and ADODB backends


Index: AllPages.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/AllPages.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -2 -b -p -d -r1.17 -r1.18
--- AllPages.php 27 Feb 2003 20:10:30 -0000 1.17
+++ AllPages.php 25 Jan 2004 07:58:30 -0000 1.18
@@ -58,8 +58,12 @@ extends WikiPlugin
extract($this->getArgs($argstr, $request));
// Todo: extend given _GET args
- if ($sortby)
+ if ($sorted = $request->getArg('sortby'))
+ $sortby = $sorted;
+ elseif ($sortby)
$request->setArg('sortby',$sortby);

- $pagelist = new PageList($info, $exclude);
+ $pagelist = new PageList($info, $exclude, $this->getArgs($argstr,
$request));
+ if ($sortby) $sorted = $pagelist->sortby($sortby,'db');
+ else $sorted='pagename';
if (!$noheader)
$pagelist->setCaption(_("Pages in this wiki (%d total):"));
@@ -69,7 +73,8 @@ extends WikiPlugin
$pagelist->_addColumn('version');

+ if (defined('DEBUG') and DEBUG)
$timer = new DebugTimer;
-
- $pagelist->addPages( $dbi->getAllPages($include_empty) );
+ //handle $sortby
+ $pagelist->addPages( $dbi->getAllPages($include_empty, $sorted) );

if (defined('DEBUG') and DEBUG) {
@@ -88,4 +93,7 @@ extends WikiPlugin

// $Log$
+// Revision 1.18 2004/01/25 07:58:30 rurban
+// PageList sortby support in PearDB and ADODB backends
+//
// Revision 1.17 2003/02/27 20:10:30 dairiki
// Disable profiling output when DEBUG is defined but false.



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
ide.eclipse.wtp...    bug-tracking.ro...    xfree86.cvs/200...    lisp.wxcl.devel...    file-systems.ar...    kde.devel.kwrit...    jakarta.jetspee...    qnx.openqnx.dev...    drivers.openib/...    ports.xbox.deve...    gis.gdal.devel/...    netbsd.ports.ma...    ubuntu.marketin...    systemtap/2005-...    web.omniweb/200...    mail.qmail.ldap...    hardware.soekri...    os.netbsd.devel...    audio.madman.ge...    tv.freeguide-tv...    cluster.openmos...    education.ezpro...   
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

Navigation