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
19 * along with PhpWiki; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 require_once("lib/plugin/RecentChanges.php");
25 class WikiPlugin_RecentEdits
26 extends WikiPlugin_RecentChanges
29 return _("RecentEdits");
32 function getDescription () {
33 return _("List all recent edits in this wiki.");
36 function getVersion() {
37 return preg_replace("/[Revision: $]/", '',
41 function getDefaultArguments() {
42 $args = parent::getDefaultArguments();
43 $args['show_minor'] = true;
44 $args['show_all'] = true;
48 // box is used to display a fixed-width, narrow version with common header.
49 // just a numbered list of limit pagenames, without date.
50 function box($args = false, $request = false, $basepage = false) {
51 if (!$request) $request =& $GLOBALS['request'];
52 if (!isset($args['limit'])) $args['limit'] = 15;
53 $args['format'] = 'box';
54 $args['show_minor'] = true;
55 $args['show_major'] = true;
56 $args['show_deleted'] = false;
57 $args['show_all'] = true;
59 return $this->makeBox(WikiLink(_("RecentEdits"),'',_("Recent Edits")),
60 $this->format($this->getChanges($request->_dbi, $args), $args));
64 // (c-file-style: "gnu")
69 // c-hanging-comment-ender-p: nil
70 // indent-tabs-mode: nil