See
PublishedAPI for packages intended to be used by Plugin and Contrib authors, or
browse all packages.
See also
Developing plugins,
Developer's Bible,
Technical Overview
internal package
Foswiki::Plugins::QMPlugin
base class to hook into the foswiki core
initPlugin($topic, $web, $user) → $boolean
initialize the plugin, automatically called during the core initialization process
finishPlugin
finish the plugin and the core if it has been used,
automatically called during the core initialization process
getCore() → $core
returns a singleton
Foswiki::Plugins::QMPlugin::Core object for this plugin; a new core is allocated
during each session request; once a core has been created it is destroyed during
finishPlugin()
beforeSaveHandler($text, $topic, $web, $meta )
make sure the saved topic has got the right access control settings
afterSaveHandler($text, $topic, $web, $error, $meta )
make sure the saved topic has got the right access control settings
registerCommandHandler($id, $type, $handler)
register a function that can be refered to by the given id.
there are two types of handler:
- beforeSave: function is called before a state is saved
- afterSave: function is called after a state is saved