Extension:StubManager

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: StubManager::createStub('class name',                        'full path filename of class file',                        'full path filename of i18n file',						                          array of hooks,			$logging, // true if the extension requires logging support                        array of tags,                        array of parser function magic words,                        array of parser magic words,			array of namespaces that trigger the extension                        ); in  after the require line

Examples
See Email Log extension.

Dependancy
None.

Installation
To install independantly from BizzWiki:
 * 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(s) trigger

Code
Get it here Extension:StubManager/code. Please check SVN link provided above for the latest version.