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 57 58 59 60 61 62 63 64
|
<?php // -*-php-*-
rcs_id('$Id: Comment.php,v 1.2 2004/02/17 12:11:36 rurban Exp $');
/**
* A WikiPlugin for putting comments in WikiPages
*
* Usage:
* <?plugin Comment
*
* !!! My Secret Text
*
* This is some WikiText that won't show up on the page.
*
* ?>
*/
class WikiPlugin_Comment
extends WikiPlugin
{
// Five required functions in a WikiPlugin.
function getName() {
return _("Comment");
}
function getDescription() {
return _("Embed hidden comments in WikiPages.");
}
function getVersion() {
return preg_replace("/[Revision: $]/", '',
"\$Revision: 1.2 $");
}
// No arguments here.
function getDefaultArguments() {
return array();
}
function run($dbi, $argstr, &$request, $basepage) {
}
// function handle_plugin_args_cruft(&$argstr, &$args) {
// }
};
// $Log: Comment.php,v $
// Revision 1.2 2004/02/17 12:11:36 rurban
// added missing 4th basepage arg at plugin->run() to almost all plugins. This caused no harm so far, because it was silently dropped on normal usage. However on plugin internal ->run invocations it failed. (InterWikiSearch, IncludeSiteMap, ...)
//
// Revision 1.1 2003/01/28 17:57:15 carstenklapp
// Martin Geisler's clever Comment plugin.
//
// For emacs users
// Local Variables:
// mode: php
// tab-width: 8
// c-basic-offset: 4
// c-hanging-comment-ender-p: nil
// indent-tabs-mode: nil
// End:
?>
|