internal package Foswiki::Plugins::DebugLogPlugin $topic - the name of the topic in the current CGI query
$web - the name of the web in the current CGI query
$user - the login name of the user
$installWeb - the name of the web the plugin is installed in
| Plugin | Errors |
|---|---|
| SpreadSheetPlugin | none |
| SlideShowPlugin | none |
| AutoViewTemplatePlugin | none |
| CommentPlugin | none |
| CompareRevisionsAddonPlugin | none |
| ConfigurePlugin | none |
| DebugLogPlugin | none |
| EditRowPlugin | none |
| HistoryPlugin | none |
| HomePagePlugin | none |
| InterwikiPlugin | none |
| JQueryPlugin | none |
| MailerContribPlugin | none |
| NatEditPlugin | none |
| PreferencesPlugin | none |
| RenderListPlugin | none |
| SmiliesPlugin | none |
| SubscribePlugin | none |
| TablePlugin | none |
| TinyMCEPlugin | none |
| TwistyPlugin | none |
| UpdatesPlugin | none |
| WysiwygPlugin | none |
| Handler | Plugins |
|---|---|
| afterCommonTagsHandler | TablePlugin |
| afterEditHandler | WysiwygPlugin |
| beforeCommonTagsHandler | PreferencesPlugin WysiwygPlugin |
| beforeEditHandler | NatEditPlugin TinyMCEPlugin WysiwygPlugin |
| beforeMergeHandler | WysiwygPlugin |
| beforeSaveHandler | WysiwygPlugin |
| commonTagsHandler | SpreadSheetPlugin SlideShowPlugin CompareRevisionsAddonPlugin EditRowPlugin |
| finishPlugin | JQueryPlugin UpdatesPlugin |
| initPlugin | SpreadSheetPlugin SlideShowPlugin AutoViewTemplatePlugin CommentPlugin CompareRevisionsAddonPlugin ConfigurePlugin DebugLogPlugin EditRowPlugin HistoryPlugin HomePagePlugin InterwikiPlugin JQueryPlugin MailerContribPlugin NatEditPlugin PreferencesPlugin RenderListPlugin SmiliesPlugin SubscribePlugin TablePlugin TinyMCEPlugin TwistyPlugin UpdatesPlugin WysiwygPlugin |
| initializeUserHandler | HomePagePlugin |
| lateInitPlugin | JQueryPlugin |
| modifyHeaderHandler | WysiwygPlugin |
| mergeHandler | DebugLogPlugin |
| postRenderingHandler | EditRowPlugin PreferencesPlugin WysiwygPlugin |
| preRenderingHandler | InterwikiPlugin RenderListPlugin SmiliesPlugin TablePlugin |
Foswiki::Func::registerTagHandler here to register
a function to handle variables that have standard Foswiki syntax - for example,
=%MYTAG{"my param" myarg="My Arg"}%. You can also override internal
Foswiki variable handling functions this way, though this practice is unsupported
and highly dangerous!
Note: Please align variables names with the Plugin name, e.g. if
your Plugin is called FooBarPlugin, name variables FOOBAR and/or
FOOBARSOMETHING. This avoids namespace issues.
differences
array is an array of hash references, where each hash contains the
following fields: $diff => one of the characters '+', '-', 'c' or ' '. new contains text inserted in the new version
old contains text deleted from the old version
old contains text from the old version, and new text from the version being saved
new contains text common to both versions, or the change only involved whitespace
$old => text from version currently saved
$new => text from version being saved
\%info is a reference to the form field description { name, title, type, size, value, tooltip, attributes, referenced }. It must not be wrtten to. This parameter will be undef when merging the body text of the topic.
{ diff=>'c', old=>'Leafy', new=>'Barky' } might be resolved as
'Treelike'. If the plugin cannot resolve a difference it should return
undef.
The merge handler will be called several times during a save; once for
each difference that needs resolution.
If any merges are left unresolved after all plugins have been given a
chance to intercede, the following algorithm is used to decide how to
merge the data: new is taken for all radio, checkbox and select fields to resolve 'c' conflicts
<del>conflict</del> <ins>markers</ins> are used to mark 'c' merges in text fields
rest script. The parameter is: $session - The Foswiki object associated to this session.