Manual:SpecialPage.php

Description
SpecialPage.php contains the special page class, and also static functions for handling specialpg>Special:MyLanguage/Special pages|special pages and lists thereof.

To add a special page in an extension, add to  either


 * an object instance, or


 * an array containing the name and constructor parameters (preferred for performance reasons)

The object instantiated must be either an instance of SpecialPage or a sub-class thereof. It must have an   method, which sends the HTML for the special page to . The parent class has an   method which distributes the call to the historical global functions. Additionally,   also checks if the user has the necessary access privileges and bails out if not.


 * To add a core special page, use the similar static list in  .


 * To remove a core static special page at runtime, use a initlist-hook>Special:MyLanguage/SpecialPage initList|initList hook.