]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/plugin/HelloWorld.php
Jeff's hacks II, continued:
[SourceForge/phpwiki.git] / lib / plugin / HelloWorld.php
1 <?php // -*-php-*-
2 rcs_id('$Id: HelloWorld.php,v 1.1 2001-09-18 19:19:05 dairiki Exp $');
3 /**
4  * A simple demonstration WikiPlugin.
5  */
6 class WikiPlugin_HelloWorld
7 extends WikiPlugin
8 {
9     function getDefaultArguments() {
10         return array('salutation'       => 'Hello,',
11                      'name'                     => 'World');
12     }
13
14     function run($argstr) {
15         extract($this->parseArgs($argstr));
16         
17         return sprintf("<tt>%s %s</tt>", $salutation, $name);
18     }
19 };
20         
21 ?>