From: Nicholas <nic...@sy...> - 2000-07-11 05:03:30
|
I've noticed the lag too, maybe SourceForge is suffering SuccessCrisis At 09:51 PM 7/10/00 -0700, Jeff Dairiki wrote: >In message ><Pin...@bo...>,Steve Wa >instead writes: > >I want to >set it up so that we only need one call to OpenDataBase(), ... > >I agree, and have been thinking along the same lines. > >We should anticipate the addition of version control too. I see something >like (letting my bias towards objects show through): > >In wiki_config.php3: > >$dbi = new WikiMySqlDB('localhost','test','guest',''); > > >Then in wiki_xxx.php3: > >// Get current version of page >$current_page = $dbi->retrievePage($pagename); > >// Get most recent archived page >$archived_page = $dbi->retrievePage($pagename, -1); > >// Get second most recent archived page (or false if there is none) >$old_archived_page = $dbi->retrievePage($pagename, -2); > >// Get version 12 of the page (o4 false if version 12 is not in the database). >$page_version12 = $dbi->retrievePage($pagename, 12); > > >This would be a good time to clean up the InitXXX(), XXXNextMatch() interface >too. As stated in a previous post, I suggest iterators: > >$search = $dbi->fullSearch("findme"); >while ($page = $search->next()) { > // do something; >} > >or similar... > >Jeff > >PS Anyone else notice anything funny going on with phpwiki-talk? I posted >two notes earlier today (one re: ZIP file stuff, and one about bugs in >wiki_transform) and I've only seen one come back. Also I can't get into the >archives (I get the oh-so-informative "An error occured.") > > > >_______________________________________________ >Phpwiki-talk mailing list >Php...@li... >http://lists.sourceforge.net/mailman/listinfo/phpwiki-talk -N -- Nicholas Roberts, Webmaster/Director mailto:Nic...@SY... -- Synarchy Australia Pty Ltd ACN: 052 408 849 11/281a Edgecliff Rd, Woollahra 2025, NSW, Australia http://SYNARCHY.NET Mob: 0414 642 316 Ph/Fax: +612 9475 4399 -- SYDNIC ARCHITECTURE: A New Architectural Style with the Sydney Opera House as a Signature Building http://synarchy.net/Sydnic -- Evolution and the Polymath Entrepreneur http://phpwiki.sourceforge.net/1.1.6/index.php3?NicholasRoberts --- Open Editing - Have Your Say! -- |