Extension:UnknownActionHandler

The actual extensions page can be found at http://bluecortex.com/index.php?title=Bluecortex:UnknownActionHandler

Description
This extensions adds the capability to define custom action handlers to a Mediawiki installation. The processing code is fetched from a specified Mediawiki stored page. The said page can also contain GeSHi compatible tags to wrap the PHP code. Finally, wikitext can also be present on the page alongside the PHP code but this latter one will not take part in the Unknown Action handling.

Function
Extension that provides a new hook "UnknownAction".

This hook is triggered after a non-native action is requested to Mediawiki. A custom [Action][Handler] associative array is used to load a configured article page containing processing code to handle the request.

Example Usage
A special page for editing a page's attributes made available through the "PageAttributes" extension.

IMPORTANT USAGE NOTE
The Mediawiki page that stores the PHP code processor for the handler must be structured in the following way:

The extension leverages PHP's eval method capability to provide a return code in order to get access to the method name to call.

Dependancy
Requires the extension 'RunPHP Class' to operate.

History

 * V1.0   Initial availability.
 * V1.1   Integration with "RunPHP Class"
 * V1.2   Added Javascript integration
 * V1.3   Changed to "silent" behavior when no handler present for an action.

Source Code
Source Code and additional information can be found at.