]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/plugin/RecentEdits.php
Remove $Log
[SourceForge/phpwiki.git] / lib / plugin / RecentEdits.php
1 <?php // -*-php-*-
2 rcs_id('$Id$');
3
4 require_once("lib/plugin/RecentChanges.php");
5
6 class WikiPlugin_RecentEdits
7 extends WikiPlugin_RecentChanges
8 {
9     function getName () {
10         return _("RecentEdits");
11     }
12
13     function getDescription () {
14         return _("List all recent edits in this wiki.");
15     }
16
17     function getVersion() {
18         return preg_replace("/[Revision: $]/", '',
19                             "\$Revision$");
20     }
21
22     function getDefaultArguments() {
23         $args = parent::getDefaultArguments();
24         $args['show_minor'] = true;
25         $args['show_all'] = true;
26         return $args;
27     }
28
29     // box is used to display a fixed-width, narrow version with common header.
30     // just a numbered list of limit pagenames, without date.
31     function box($args = false, $request = false, $basepage = false) {
32         if (!$request) $request =& $GLOBALS['request'];
33         if (!isset($args['limit'])) $args['limit'] = 15;
34         $args['format'] = 'box';
35         $args['show_minor'] = true;
36         $args['show_major'] = true;
37         $args['show_deleted'] = false;
38         $args['show_all'] = true;
39         $args['days'] = 90;
40         return $this->makeBox(WikiLink(_("RecentEdits"),'',_("Recent Edits")),
41                               $this->format($this->getChanges($request->_dbi, $args), $args));
42     }
43 }
44
45 // (c-file-style: "gnu")
46 // Local Variables:
47 // mode: php
48 // tab-width: 8
49 // c-basic-offset: 4
50 // c-hanging-comment-ender-p: nil
51 // indent-tabs-mode: nil
52 // End:
53 ?>