see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author: StarRider starrrider@sourceforge.net // +----------------------------------------------------------------------+ // $id: data.example.php,v 1.4.2.9 2005/07/14 09:03:36 starrider Exp $ /****************** * Initialization * ******************/ define( 'PLUGIN_GUID_DATAEXAMPLE', 'dataexample' ); global $gLibertySystem; $pluginParams = [ 'tag' => 'EXAM', 'auto_activate' => false, 'requires_pair' => false, 'load_function' => '\data_example', 'title' => 'Example', 'help_page' => 'DataPluginExample', 'description' => KernelTools::tra("This Plugin is an Example that does nothing. It functions as a template for the creation of new plugins."), 'help_function' => '\data_example_help', 'syntax' => "{EXAM x1= x2= }", 'plugin_type' => DATA_PLUGIN, ]; $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAEXAMPLE, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAEXAMPLE ); /***************** * Help Function * *****************/ function data_example_help() { $help = '
| ' . KernelTools::tra( "Key" ) . ' | ' .'' . KernelTools::tra( "Type" ) . ' | ' .'' . KernelTools::tra( "Comments" ) . ' | ' .'
|---|---|---|
| x1 | ' .'' . KernelTools::tra( "string") . ' ' . KernelTools::tra("(optional)") . ' | '
.'' . KernelTools::tra( "Specifies something / probably to be displayed.")
.' ' . KernelTools::tra( "The Default = Sorry About That") .' | '
.'
| XXX | ' .'' . KernelTools::tra( "number") . ' ' . KernelTools::tra("(optional)") . ' | '
.'' . KernelTools::tra( "Specifies something / probably to be displayed.")
.' ' . KernelTools::tra( "The Default =") . ' 3 ' . KernelTools::tra( "Which means - What") .' | '
.'