|
|
Choosing A Webhost: |
CVS: phpwiki/lib/plugin AllPages.php,1.17,1.18: msg#00030web.wiki.phpwiki.checkins
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> |
|---|---|---|
| Previous by Date: | CVS: phpwiki/lib PageList.php,1.46,1.47 WikiDB.php,1.27,1.28, Reini Urban |
|---|---|
| Next by Date: | CVS: phpwiki/lib/WikiDB/backend ADODB.php,1.10,1.11 PearDB.php,1.32,1.33, Reini Urban |
| Previous by Thread: | CVS: phpwiki/lib PageList.php,1.46,1.47 WikiDB.php,1.27,1.28, Reini Urban |
| Next by Thread: | CVS: phpwiki/lib/WikiDB/backend ADODB.php,1.10,1.11 PearDB.php,1.32,1.33, Reini Urban |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |