Extension:StubManager

<?php /*

Purpose
This extension is meant to address 'rare events' handling through class object 'stubs'. For infrequent events (of course this is relative!), use this extension to instantiate a 'stub object' for the required hooks. The net effect is lower transaction times thereby speeding up MediaWiki based sites.

Features

 * Handles 'hook' registration
 * Handles 'parser function' registration
 * Handles 'parser magic word' registration
 * Handles 'parser tag' registration
 * Handles extensions which implement logging functionality
 * Handles 'namespace triggering': reduces even further the load time per transaction

Audience
This extension is meant for 'extension writers'.

Usage
To create a stub, use: in  after the require line

Examples
See Email Log extension.

Dependancy
None.

Installation
To install independantly from BizzWiki:
 * Download the extension file 'StubManager.php' and place in the '/extensions' directory
 * Apply the following changes to 'LocalSettings.php'

History

 * Added one more parameter to '__call' method to accomodate hooks such as ArticleSave.
 * Added registration functionality for:
 * 'tag' handlers (XML style section)
 * 'mg' (i.e. parser functions)
 * 'MW' (i.e. parser Magic Words)
 * fixed annoying warning about undefined offset.
 * added namespace triggering functionality
 * Only load an extension when the extension's target namespace(s) are in focus.