2 rcs_id('$Id: AllPages.php,v 1.5 2002-01-28 03:59:30 dairiki Exp $');
4 require_once('lib/PageList.php');
8 class WikiPlugin_AllPages
15 function getDescription () {
16 return _("All Pages");
19 function getDefaultArguments() {
20 return array('noheader' => false,
21 'include_empty' => false,
25 // info arg allows multiple columns info=mtime,hits,summary,version,author,locked,minor
27 function run($dbi, $argstr, $request) {
28 extract($this->getArgs($argstr, $request));
30 $pages = $dbi->getAllPages($include_empty);
32 $pagelist = new PageList();
34 foreach (explode(",", $info) as $col)
35 $pagelist->insertColumn($col);
38 $pagelist->setCaption(_("Pages in this wiki (%d total):"));
40 while ($page = $pages->next())
41 $pagelist->addPage($page);
51 // c-hanging-comment-ender-p: nil
52 // indent-tabs-mode: nil