Draft-in-progress documenting ThinkUp’s existing plugin architecture.
The key parent class is
/thinkup/webapp/common/. You can register callback methods on the
PluginHook class, but you don’t do that directly. The
Webapp classes—both intialized on every page in
PluginHook—which means you can register callback methods on them.
Webapp instantiated, the plugin files get included and register their callbacks.
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.