getArgs($argstr, $request); extract($args); return $this->disabled("Sorry, this plugin is currently out of order."); return PageType($pagerevisionhandle, $pagename = _('InterWikiMap'), $markup = 2, $overridePageType = 'searcableInterWikiMapPageType'); } }; /** * @desc */ if (0) { class searcableInterWikiMapPageType extends interWikiMapPageType { function _arrayToTable ($array, &$request) { $thead = HTML::thead(); $label[0] = _("Wiki Name"); $label[1] = _("Search"); $thead->pushContent(HTML::tr(HTML::td($label[0]), HTML::td($label[1]))); $tbody = HTML::tbody(); $dbi = $request->getDbh(); if ($array) { foreach ($array as $moniker => $interurl) { $monikertd = HTML::td(array('class' => 'interwiki-moniker'), $dbi->isWikiPage($moniker) ? WikiLink($moniker) : $moniker); $w = new WikiPluginLoader; $p = $w->getPlugin('ExternalSearch'); $argstr = sprintf('url="%s"', addslashes($moniker)); $searchtd = HTML::td($p->run($dbi, $argstr, $request)); $tbody->pushContent(HTML::tr($monikertd, $searchtd)); } } $table = HTML::table(); $table->setAttr('class', 'interwiki-map'); $table->pushContent($thead); $table->pushContent($tbody); return $table; } }; } // $Log: not supported by cvs2svn $ // Revision 1.2 2003/02/22 20:49:56 dairiki // Fixes for "Call-time pass by reference has been deprecated" errors. // // Revision 1.1 2003/01/31 22:56:21 carstenklapp // New plugin which provides entry forms to search any site listed in the InterWikiMap. // // (c-file-style: "gnu") // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: ?>