internal package
Foswiki::Plugins::DebugLogPlugin 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
Handler | Plugins |
---|---|
afterAttachmentSaveHandler | DBCachePlugin This handler is deprecated - please check for updated versions of the plugins that use it! |
afterUploadHandler | DBCachePlugin MoreFormfieldsPlugin TopicInteractionPlugin |
afterCommonTagsHandler | TablePlugin |
afterEditHandler | MoreFormfieldsPlugin WysiwygPlugin |
afterRenameHandler | DBCachePlugin FlexWebListPlugin ImagePlugin MoreFormfieldsPlugin TopicTitlePlugin |
afterSaveHandler | DBCachePlugin FlexWebListPlugin ImagePlugin MoreFormfieldsPlugin |
beforeCommonTagsHandler | NewUserPlugin PreferencesPlugin WysiwygPlugin |
beforeEditHandler | MoreFormfieldsPlugin NatEditPlugin TinyMCEPlugin WysiwygPlugin |
beforeMergeHandler | WysiwygPlugin |
beforeSaveHandler | MetaDataPlugin MoreFormfieldsPlugin MultiLingualPlugin TopicTitlePlugin WysiwygPlugin |
beforeUploadHandler | TopicInteractionPlugin |
commonTagsHandler | SpreadSheetPlugin SlideShowPlugin CompareRevisionsAddonPlugin DiffPlugin EditRowPlugin FilterPlugin ImagePlugin |
completePageHandler | FlexFormPlugin NatSkinPlugin |
earlyInitPlugin | TWikiCompatibilityPlugin MetaDataPlugin |
endRenderingHandler | NatSkinPlugin This handler is deprecated - please check for updated versions of the plugins that use it! |
finishPlugin | AutoTemplatePlugin BreadCrumbsPlugin DBCachePlugin DiffPlugin FeedPlugin FilterPlugin FlexFormPlugin FlexWebListPlugin GridLayoutPlugin ImagePlugin JQueryPlugin LdapNgPlugin ListyPlugin MetaDataPlugin MimeIconPlugin MoreFormfieldsPlugin MultiLingualPlugin NatSkinPlugin RenderPlugin TopicInteractionPlugin TopicTitlePlugin UpdatesPlugin WebLinkPlugin |
initPlugin | TWikiCompatibilityPlugin SpreadSheetPlugin SlideShowPlugin AutoTemplatePlugin AutoViewTemplatePlugin BreadCrumbsPlugin CalDAVPlugin CommentPlugin CompareRevisionsAddonPlugin ConfigurePlugin DBCachePlugin DebugLogPlugin DiffPlugin EditRowPlugin FeedPlugin FilterPlugin FlexFormPlugin FlexWebListPlugin GridLayoutPlugin HistoryPlugin HomePagePlugin ImagePlugin InterwikiPlugin JQueryPlugin LdapNgPlugin ListyPlugin MailerContribPlugin MetaDataPlugin MimeIconPlugin ModifyLoginPlugin MoreFormfieldsPlugin MultiLingualPlugin NatEditPlugin NatSkinPlugin NewUserPlugin PreferencesPlugin RedDotPlugin RedirectPlugin RenderListPlugin RenderPlugin SmiliesPlugin SubscribePlugin TablePlugin TinyMCEPlugin TopicInteractionPlugin TopicTitlePlugin TwistyPlugin UpdatesPlugin VotePlugin WebLinkPlugin WysiwygPlugin |
initializeUserHandler | HomePagePlugin ModifyLoginPlugin |
modifyHeaderHandler | RenderPlugin WysiwygPlugin |
mergeHandler | DebugLogPlugin |
postRenderingHandler | EditRowPlugin PreferencesPlugin WysiwygPlugin |
preRenderingHandler | InterwikiPlugin RenderListPlugin SmiliesPlugin TablePlugin |
renderWikiWordHandler | TWikiCompatibilityPlugin TopicTitlePlugin |
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.