Tags:
188bettvip
6
apple
asd
babu88
Babu88 &2438;&2474;&2472;&2494
Bakugan and Deku coloring page
Basreng188 Indonesia Games: Th
Boost Your Online Presence wit
casino
chatgpt kostenlos
CollegeSuccessForTeenagers
column
Dear Lottery lottery sambad na
Dibu Martínez Argentina&39;s h
Digiwebglobal.com: Your Gatewa
Download Shein apk
edu post
egdfgfdgfdgdg
Eroticke Masaze Praha
erp
Face
Fethiye
game
Game Online Slot Gacor
garage door
garage door repair
garage door service
GaragedoorrepairMinneapolis
gioi thieu xaydunglocthinh
Good Team Name
GoPromotional Items
HMblogs
How Can I Leverage Social Medi
hvacdiploma
hy86net
Interactive PPT presentation
ios368
Jenny
Khám Phá Website bj38: Tr&7843
kindergarden
konohatoto78
lottrey
Marrakech-desert-tours
massage lingam
MNLWIN
Mobile Repair
Most Popular Stuffed Toys
moving
Multimedia Presentation Exampl
news
Nh&7919;ng Chi&7871;n L&432;&7
Nivela
Northern Lottery: An Attractiv
Nên &273;ánh con gì khi m&417;
ok9host
olxtoto
Portside Web Design and SEO Ne
Powering the Future: The Impor
Prep Guides
pujcovnadodavekpraha
rabonabet
Referring page
resume
Revolutionize Your Design Work
Ritalin Dosage Guide: Finding
sadad
Signal
slot thailand
Social media app development
Social media app development-C
Sports Streaming
sssss
Strategies for Success in Ku88
The Future of Life Coaching Pr
Training
Training-Programs
Travel
Types of presentation software
University Admission Portal
VietScore
What Are The Benefits Of A PGD
Why Balloons Make Every Occasi
Wordle
wordle123
Xí Ng&7847;u - H&432;&7899;ng
Zero Down Payment iPhone Offer
tag this topic
create new tag
view all tags
---+ Package =TWiki::Plugins= This module defines the singleton object that handles Plugins loading, initialization and execution. This class uses Chain of Responsibility (GOF) pattern to dispatch handler calls to registered plugins. %TOC% Note that as of version 1.026 of this module, TWiki internal methods are _no longer available_ to plugins. Any calls to TWiki internal methods must be replaced by calls via the =$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. ---++ PUBLIC constant $VERSION This is the version number of the plugins package. Use it for checking if you have a recent enough version. ---++ PUBLIC $SESSION This is a reference to the TWiki session object. It can be used in plugins to get at the methods of the TWiki kernel. You are _highly_ recommended to only use the methods in the [[TWikiFuncDotPm][Func]] interface, unless you have no other choice, as kernel methods may change between TWiki releases. ---++ ClassMethod *new* <tt>($session)</tt> Construct new singleton plugins collection object. The object is a container for a list of plugins and the handlers registered by the plugins. The plugins and the handlers are carefully ordered. ---++ ObjectMethod *finish* <tt>()</tt> Break circular references. ---++ ObjectMethod *load* <tt>($allDisabled) -> $loginName</tt> Find all active plugins, and invoke the early initialisation. Has to be done _after_ prefs are read. Returns the user returned by the last =initializeUserHandler= to be called. If allDisabled is set, no plugin handlers will be called. ---++ ObjectMethod *settings* <tt>()</tt> Push plugin settings onto preference stack ---++ ObjectMethod *enable* <tt>()</tt> Initialisation that is done after the user is known. ---++ ObjectMethod *getPluginVersion* <tt>() -> $number</tt> Returns the $TWiki::Plugins::VERSION number if no parameter is specified, else returns the version number of a named Plugin. If the Plugin cannot be found or is not active, 0 is returned. ---++ ObjectMethod *addListener* <tt>($command,$handler)</tt> * =$command= - name of the event * =$handler= - the handler object. Add a listener to the end of the list of registered listeners for this event. The listener must implement =invoke($command,...)=, which will be triggered when the event is to be processed. ---++ ObjectMethod *dispatch* <tt>($handlerName,...)</tt> Dispatch the given handler, passing on ... in the parameter vector ---++ ObjectMethod *haveHandlerFor* <tt>($handlerName) -> $boolean</tt> * =$handlerName= - name of the handler e.g. preRenderingHandler Return: true if at least one plugin has registered a handler of this type.
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r4 - 2010-05-29
-
TWikiContributor
Home
Site map
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
E
dit
A
ttach
Copyright &© 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.TWikiPluginsDotPm
.