]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/plugin/Comment.php
New FSF address
[SourceForge/phpwiki.git] / lib / plugin / Comment.php
1 <?php // -*-php-*-
2 // $Id$
3
4 /*
5  * Copyright (C) 2003 Martin Geisler
6  * Copyright (C) 2003-2004 $ThePhpWikiProgrammingTeam
7  * Copyright (C) 2009 Marc-Etienne Vargenau, Alcatel-Lucent
8  *
9  * This file is part of PhpWiki.
10  *
11  * PhpWiki is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * PhpWiki is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License along
22  * with PhpWiki; if not, write to the Free Software Foundation, Inc.,
23  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 */
25
26 /**
27  * A WikiPlugin for putting comments in WikiPages
28  *
29  * Usage:
30  * <<Comment
31  *
32  * == My Secret Text
33  *
34  * This is some WikiText that won't show up on the page.
35  *
36  * >>
37  */
38
39 class WikiPlugin_Comment
40 extends WikiPlugin
41 {
42     function getName() {
43         return _("Comment");
44     }
45
46     function getDescription() {
47         return _("Embed hidden comments in WikiPages.");
48     }
49
50     // No arguments here.
51     function getDefaultArguments() {
52         return array();
53     }
54
55     function run($dbi, $argstr, &$request, $basepage) {
56         return HTML::raw('');
57     }
58 };
59
60 // Local Variables:
61 // mode: php
62 // tab-width: 8
63 // c-basic-offset: 4
64 // c-hanging-comment-ender-p: nil
65 // indent-tabs-mode: nil
66 // End:
67 ?>