TWiki::Plugins
$SESSION
object in this package, or via the Func package.
For example, the call:
my $pref = TWiki::getPreferencesValue('URGH');
should be replaced with
my $pref = TWiki::Func::getPreferencesValue('URGH');
and the call
my $t = TWiki::writeWarning($message);
should be replaced with
my $pref = $TWiki::Plugins::SESSION->writeWarning($message);
Methods in other modules such as Store must be accessed through
the relevant TWiki sub-object, for example
TWiki::Store::saveTopic(...)
should be replaced with
$TWiki::Plugins::SESSION->{store}->saveTopic(...)
Note that calling TWiki internal methods is very very bad practice,
and should be avoided wherever practical.
The developers of TWiki reserve the right to change internal
methods without warning, unless those methods are clearly
marked as PUBLIC. PUBLIC methods are part of the core specification
of a module and can be trusted.
initializeUserHandler
to be
called.
If allDisabled is set, no plugin handlers will be called.
$command
- name of the event
$handler
- the handler object.
invoke($command,...)
, which will be triggered
when the event is to be processed.
$handlerName
- name of the handler e.g. preRenderingHandler
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.