-
Notifications
You must be signed in to change notification settings - Fork 676
Plugins: Developer Guide
su edited this page Sep 13, 2010
·
3 revisions
Draft-in-progress documenting ThinkTank’s existing plugin architecture.
See also:
- Plugins: Architecture Wishlist
- Plugins: Simple Plugins to Build
- Plugins: How to Build a ThinkTank Plugin
The key parent class is PluginHook, in /thinkup/webapp/common/
. You can register callback methods on the PluginHook class, but you don’t do that directly. The Crawler and Webapp classes—both intialized on every page in init.php
extend PluginHook—which means you can register callback methods on them.
With Crawler and Webapp instantiated, the plugin files get included and register their callbacks. Webapp and Crawler execute those callbacks at the appropriate places in their execution. For example, the Webapp object executes the “configuration” callback on the plugin configuration screen.