Extension:StubManager

This extension is required for many other extensions to work.

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.

This is extension constitutes a dependency for many other extensions developed by User:Jldupont.

Features

 * Provides extension status messages through Special:Version
 * Customizable through MediaWiki:ExtensionState page
 * 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' and for users of extensions that depend on StubManager.

Installation Note
Always make sure that the  statement preceeds any other require statement of dependent extensions in LocalSettings.php. Whilst StubManager will appear as installed in Special:Version, dependent extensions will be registered correctly with it.

Trouble Shooting
Extensions that depend on StubManager will show up in Special:Version under Extensions registered. If the extension you are installing does not appear on this list, then it can possibly mean that the require statement of the extension is listed before StubManager in your  file. To correct this problem, place the dependent extension after the require statement of StubManager.

Special:Version Customization
Customization of the extensions' state message can be done through the page MediaWiki:ExtensionState. The first parameter passed to the template is the state variable.

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

Examples
See Email Log extension.

Dependency
None.

Installation
Important: Make sure that this extension is listed first in LocalSettings.php for other extensions depending on this one to work correctly.

1. Add the following to : 2. the most recent tgz file, currently StubManager-1.3.0.tgz.

3. Unzip the tgz file.

4. Drag and drop the entire "Stubmanager" folder into your /extensions folder, making sure that no folders or files locations are moved around.

PEAR

 * Install PEAR channel http://mediawiki.googlecode.com/svn
 * Install extension through PEAR:
 * Add the following to
 * Add the following to
 * Add the following to

SVN

 * Download archive: SVN
 * Place extension files in /extensions
 * Add the following to :