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