Need help?

Contact SCC

Email scicomp
Join #scicomp on Slack

Help us help you

Follow these guidelines when submitting a help request.

PerlDoc

18 Dec 2024 - 14:20 | Version 1 |
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


Parent package: Foswiki::Plugins
Child packages:

On this page:

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

Copyright © Simons Foundation. All material on this collaboration platform is the property of the Simons Foundation.
This website is using cookies. More info. That's Fine