MediaWiki REL1_34
|
Hooks for the Scribunto extension. More...
Static Public Member Functions | |
static | beforeEditButtons (EditPage &$editor, array &$buttons, &$tabindex) |
EditPageBeforeEditButtons hook. | |
static | clearState (Parser &$parser) |
Called when the interpreter is to be reset. | |
static | contentHandlerDefaultModelFor (Title $title, &$model) |
Set the Scribunto content handler for modules. | |
static | formatLimitData ( $key, &$value, &$report, $isHTML, $localize) |
Formats the limit report data. | |
static | getCodeLanguage (Title $title, &$languageCode) |
static | getSoftwareInfo (array &$software) |
Get software information for Special:Version. | |
static | invokeHook (Parser &$parser, PPFrame $frame, array $args) |
Hook function for {{#invoke:module|func}}. | |
static | onRegistration () |
Define content handler constant upon extension registration. | |
static | parserCloned (Parser $parser) |
Called when the parser is cloned. | |
static | reportLimitData (Parser $parser, ParserOutput $output) |
Adds report of number of evaluations by the single wikitext page. | |
static | reportTiming ( $moduleName, $functionName, $timing) |
Record stats on slow function calls. | |
static | setupParserHook (Parser &$parser) |
Register parser hooks. | |
static | showDocPageHeader (Article &$article, &$outputDone, &$pcache) |
static | showReadOnlyFormInitial (EditPage $editor, OutputPage $output) |
EditPage::showReadOnlyForm:initial hook. | |
static | showStandardInputsOptions (EditPage $editor, OutputPage $output, &$tab) |
EditPage::showStandardInputs:options hook. | |
static | validateScript (IContextSource $context, Content $content, Status $status) |
|
static |
EditPageBeforeEditButtons hook.
EditPage | &$editor | |
array | &$buttons | Button array |
int | &$tabindex | Current tabindex |
Definition at line 344 of file Hooks.php.
References EditPage\getTitle().
|
static |
Called when the interpreter is to be reset.
Parser | &$parser |
Definition at line 69 of file Hooks.php.
References Scribunto\resetParserEngine().
|
static |
Set the Scribunto content handler for modules.
Title | $title | |
string | &$model |
Definition at line 263 of file Hooks.php.
References $title, Scribunto\isDocPage(), and NS_MODULE.
Referenced by ScribuntoHooksTest\testContentHandlerDefaultModelFor().
|
static |
Formats the limit report data.
string | $key | |
mixed | &$value | |
string | &$report | |
bool | $isHTML | |
bool | $localize |
Definition at line 300 of file Hooks.php.
References Scribunto\newDefaultEngine().
|
static |
Title | $title | |
string | &$languageCode |
Definition at line 242 of file Hooks.php.
References $title, and Scribunto\newDefaultEngine().
|
static |
Get software information for Special:Version.
array | &$software |
Definition at line 45 of file Hooks.php.
References Scribunto\newDefaultEngine(), and NS_SPECIAL.
Hook function for {{#invoke:module|func}}.
MWException | |
ScribuntoException |
Definition at line 95 of file Hooks.php.
References $args, $title, Parser\addTrackingCategory(), PPFrame\expand(), Parser\getOutput(), Scribunto\getParserEngine(), ScribuntoException\getScriptTraceHtml(), PPFrame\newChild(), NS_MODULE, reportTiming(), and wfMessage().
|
static |
|
static |
|
static |
Adds report of number of evaluations by the single wikitext page.
Parser | $parser | |
ParserOutput | $output |
Definition at line 282 of file Hooks.php.
References Scribunto\getParserEngine(), and Scribunto\isParserEnginePresent().
|
static |
Record stats on slow function calls.
string | $moduleName | |
string | $functionName | |
int | $timing | Function execution time in milliseconds. |
Definition at line 185 of file Hooks.php.
References $cache, and CACHE_NONE.
Referenced by invokeHook().
|
static |
Register parser hooks.
Parser | &$parser |
Definition at line 58 of file Hooks.php.
References Parser\setFunctionHook().
|
static |
Article | &$article | |
bool | &$outputDone | |
bool | &$pcache |
Definition at line 391 of file Hooks.php.
References $title, Article\getContext(), Article\getTitle(), Scribunto\isDocPage(), and wfMessage().
|
static |
EditPage::showReadOnlyForm:initial hook.
EditPage | $editor | |
OutputPage | $output |
Definition at line 328 of file Hooks.php.
References OutputPage\addModules(), and EditPage\getTitle().
|
static |
EditPage::showStandardInputs:options hook.
EditPage | $editor | |
OutputPage | $output | |
int | &$tab | Current tabindex |
Definition at line 313 of file Hooks.php.
References OutputPage\addModules(), and EditPage\getTitle().
|
static |
IContextSource | $context | |
Content | $content | |
Status | $status |
Definition at line 357 of file Hooks.php.
References $content, $context, $line, $title, and StatusValue\merge().