]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/plugin/Comment.php
Activated Id substitution for Subversion
[SourceForge/phpwiki.git] / lib / plugin / Comment.php
1 <?php // -*-php-*-
2 rcs_id('$Id$');
3 /**
4  * A WikiPlugin for putting comments in WikiPages
5  *
6  * Usage:
7  * <?plugin Comment
8  *
9  * !!! My Secret Text
10  *
11  * This is some WikiText that won't show up on the page.
12  *
13  * ?>
14  */
15
16 class WikiPlugin_Comment
17 extends WikiPlugin
18 {
19     // Five required functions in a WikiPlugin.
20
21     function getName() {
22         return _("Comment");
23     }
24
25     function getDescription() {
26         return _("Embed hidden comments in WikiPages.");
27
28     }
29
30     function getVersion() {
31         return preg_replace("/[Revision: $]/", '',
32                             "\$Revision: 1.2 $");
33     }
34
35     // No arguments here.
36     function getDefaultArguments() {
37         return array();
38     }
39
40     function run($dbi, $argstr, &$request, $basepage) {
41     }
42
43     // function handle_plugin_args_cruft(&$argstr, &$args) {
44     // }
45
46 };
47
48 // $Log: not supported by cvs2svn $
49 // Revision 1.1  2003/01/28 17:57:15  carstenklapp
50 // Martin Geisler's clever Comment plugin.
51 //
52
53 // For emacs users
54 // Local Variables:
55 // mode: php
56 // tab-width: 8
57 // c-basic-offset: 4
58 // c-hanging-comment-ender-p: nil
59 // indent-tabs-mode: nil
60 // End:
61 ?>