]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/plugin/RecentEdits.php
Activated Id substitution for Subversion
[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 getVersion() {
14         return preg_replace("/[Revision: $]/", '',
15                             "\$Revision: 1.1 $");
16     }
17
18     function getDefaultArguments() {
19         $args = parent::getDefaultArguments();
20         $args['show_minor'] = true;
21         $args['show_all'] = true;
22         return $args;
23     }
24
25     // box is used to display a fixed-width, narrow version with common header.
26     // just a numbered list of limit pagenames, without date.
27     function box($args = false, $request = false, $basepage = false) {
28         if (!$request) $request =& $GLOBALS['request'];
29         if (!isset($args['limit'])) $args['limit'] = 15;
30         $args['format'] = 'box';
31         $args['show_minor'] = true;
32         $args['show_major'] = true;
33         $args['show_deleted'] = false;
34         $args['show_all'] = true;
35         $args['days'] = 90;
36         return $this->makeBox(WikiLink(_("RecentEdits"),'',_("Recent Edits")),
37                               $this->format($this->getChanges($request->_dbi, $args), $args));
38     }
39 }
40
41 // $Log: not supported by cvs2svn $
42
43 // (c-file-style: "gnu")
44 // Local Variables:
45 // mode: php
46 // tab-width: 8
47 // c-basic-offset: 4
48 // c-hanging-comment-ender-p: nil
49 // indent-tabs-mode: nil
50 // End:
51 ?>