MediaWiki
1.34.0
|
Hooks for the Scribunto extension. More...
Static Public Member Functions | |
static | beforeEditButtons (EditPage &$editor, array &$buttons, &$tabindex) |
EditPageBeforeEditButtons hook. More... | |
static | clearState (Parser &$parser) |
Called when the interpreter is to be reset. More... | |
static | contentHandlerDefaultModelFor (Title $title, &$model) |
Set the Scribunto content handler for modules. More... | |
static | formatLimitData ( $key, &$value, &$report, $isHTML, $localize) |
Formats the limit report data. More... | |
static | getCodeLanguage (Title $title, &$languageCode) |
static | getSoftwareInfo (array &$software) |
Get software information for Special:Version. More... | |
static | invokeHook (Parser &$parser, PPFrame $frame, array $args) |
Hook function for {{#invoke:module|func}}. More... | |
static | onRegistration () |
Define content handler constant upon extension registration. More... | |
static | parserCloned (Parser $parser) |
Called when the parser is cloned. More... | |
static | reportLimitData (Parser $parser, ParserOutput $output) |
Adds report of number of evaluations by the single wikitext page. More... | |
static | reportTiming ( $moduleName, $functionName, $timing) |
Record stats on slow function calls. More... | |
static | setupParserHook (Parser &$parser) |
Register parser hooks. More... | |
static | showDocPageHeader (Article &$article, &$outputDone, &$pcache) |
static | showReadOnlyFormInitial (EditPage $editor, OutputPage $output) |
EditPage::showReadOnlyForm:initial hook. More... | |
static | showStandardInputsOptions (EditPage $editor, OutputPage $output, &$tab) |
EditPage::showStandardInputs:options hook. More... | |
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 Title\makeTitle(), Scribunto\newDefaultEngine(), and NS_SPECIAL.
|
static |
Hook function for {{#invoke:module|func}}.
Parser | &$parser | |
PPFrame | $frame | |
array | $args |
MWException | |
ScribuntoException |
Definition at line 95 of file Hooks.php.
References $args, $title, PPFrame\expand(), Scribunto\getParserEngine(), ScribuntoException\getScriptTraceHtml(), Title\makeTitleSafe(), 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 $output, 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, CACHE_NONE, and ObjectCache\getLocalServerInstance().
Referenced by invokeHook().
|
static |
Register parser hooks.
Parser | &$parser |
Definition at line 58 of file Hooks.php.
References SFH_OBJECT_ARGS.
|
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 $output, 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 $output, and EditPage\getTitle().
|
static |