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 (e.g.  etc.)
 * Handles 'parser function' registration (e.g. )
 * Handles 'parser magic word' registration
 * Handles 'parser tag' registration (e.g. )
 * Handles extensions which implement logging functionality
 * Handles 'namespace triggering' & 'namespace exclusion'
 * reduces even further the load time per transaction

Audience
This extension is meant for 'extension writers'.

Installation
To create a stub, create a php file StubManager.php: or, for example:

Save StubManager.php in the extensions folder.

in  at the top, after the require line add:

Examples
See Email Log extension.

Dependancy
None.

PEAR

 * Install PEAR channel "http://mediawiki.googlecode.com/svn"
 * Install extension through PEAR:
 * Modification to
 * Modification to
 * Modification to

SVN

 * Download archive: SVN
 * Place extension files in /extensions/StubManager
 * Modification to

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.
 * Added support for non-BizzWiki environments
 * Added automatic linking to page on MediaWiki.org for each extension
 * Added 'isExtensionRegistered' method
 * Added 'configureExtension' method
 * Added 'version' method
 * Moved to MediaWiki project on GoogleCode
 * Added to PEAR channel
 * Added 'auto-discovery' of Extension:ExtensionManager
 * Added 'getRevision' method.