4 * Copyright (C) 2004 $ThePhpWikiProgrammingTeam
6 * This file is part of PhpWiki.
8 * PhpWiki is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * PhpWiki is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with PhpWiki; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 require_once 'lib/plugin/RecentChanges.php';
25 class WikiPlugin_RecentEdits
26 extends WikiPlugin_RecentChanges
28 function getDescription()
30 return _("List all recent edits in this wiki.");
33 function getDefaultArguments()
35 $args = parent::getDefaultArguments();
36 $args['show_minor'] = true;
37 $args['show_all'] = true;
41 // box is used to display a fixed-width, narrow version with common header.
42 // just a numbered list of limit pagenames, without date.
43 function box($args = false, $request = false, $basepage = false)
45 if (!$request) $request =& $GLOBALS['request'];
46 if (!isset($args['limit'])) $args['limit'] = 15;
47 $args['format'] = 'box';
48 $args['show_minor'] = true;
49 $args['show_major'] = true;
50 $args['show_deleted'] = false;
51 $args['show_all'] = true;
53 return $this->makeBox(WikiLink(_("RecentEdits"), '', _("Recent Edits")),
54 $this->format($this->getChanges($request->_dbi, $args), $args));
62 // c-hanging-comment-ender-p: nil
63 // indent-tabs-mode: nil