Table of Contents

Common Plugin Functions

Each of the currently implemented DokuWiki plugin classes, syntax, admin, action, helper and renderer provide a common set of methods and properties enabling standard configuration, introspection, localisation and output facilities. These functions produce their results taking into account local installation settings and specific DokuWiki requirements.

These functions are declared in the foundation plugin class, DokuWiki_Plugin, defined in inc/plugin.php.

A summary of the functions and properties are shown below. For full and up-to-date details refer to base.php in the API Reference and the source itself in the Source Repository

Configuration

The plugin's configuration settings are stored in the installation local settings file, local.php and in the plugin specific file, default.php (refer plugin plugin file structure).

If a plugin handles its configuration through these functions, the wiki admin will be able to manage the settings interactively through the Configuration Manager. See Configuration Metadata to learn more about how to tell the Configuration Manager what to do with your settings.

Introspection

Localisation

For information on where the localised strings and files are stored see plugin plugin_file_structure.

Output