Home | Gifts |
$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
Revision r4 - 2010-05-29 - 14:44:56 - TWikiContributor | Edit |