|
| onBeforePageDisplay ( $out, $skin) |
|
| onMultiContentSave ( $renderedRevision, $user, $summary, $flags, $hookStatus) |
|
| onGetUserPermissionsErrors ( $title, $user, $action, &$result) |
|
| onLoadExtensionSchemaUpdates ( $updater) |
|
| onNamespaceIsMovable ( $index, &$result) |
|
| onHtmlPageLinkRendererEnd ( $linkRenderer, $linkTarget, $isKnown, &$text, &$attribs, &$ret) |
|
| onParserFirstCallInit ( $parser) |
| Register {{#function:…}} as a wikitext parser function to trigger function evaluation.
|
|
|
static | registerExtension () |
|
static | onCodeEditorGetPageLanguage (Title $title, &$lang) |
| Declare ZObjects as JSON-dervied, so that (for now) they can be edited directing using the CodeEditor extension.
|
|
static | createInitialContent (DatabaseUpdater $updater, $overwrite=false) |
| Installer/Updater callback to create the initial "system" ZObjects on any installation.
|
|
static | parserFunctionCallback (Parser $parser, $frame, $args=[]) |
|
|
static | getDataPath () |
| Return path of data definition JSON files.
|
|
static | insertContentObject ( $updater, $filename, $dependencies, $user, $comment, $overwrite=false, &$inserted=[], $track=[]) |
| Inserts into the database the ZObject found in a given filename of the data directory.
|
|
◆ createInitialContent()
static MediaWiki\Extension\WikiLambda\Hooks::createInitialContent |
( |
DatabaseUpdater | $updater, |
|
|
| $overwrite = false ) |
|
static |
Installer/Updater callback to create the initial "system" ZObjects on any installation.
This is a callback so that it runs after the tables have been created/updated.
- Parameters
-
DatabaseUpdater | $updater | |
bool | $overwrite | If true, overwrites the content, else skips if present |
◆ getDataPath()
static MediaWiki\Extension\WikiLambda\Hooks::getDataPath |
( |
| ) |
|
|
staticprotected |
Return path of data definition JSON files.
- Returns
- string
◆ insertContentObject()
static MediaWiki\Extension\WikiLambda\Hooks::insertContentObject |
( |
| $updater, |
|
|
| $filename, |
|
|
| $dependencies, |
|
|
| $user, |
|
|
| $comment, |
|
|
| $overwrite = false, |
|
|
& | $inserted = [], |
|
|
| $track = [] ) |
|
staticprotected |
Inserts into the database the ZObject found in a given filename of the data directory.
First checks whether the ZObject has any dependencies, according to the dependencies.json manifest file, and if so, inserts all the dependencies before trying the current ZObject.
- Parameters
-
DatabaseUpdater | $updater | |
string | $filename | |
array | $dependencies | |
User | $user | |
string | $comment | |
bool | $overwrite | |
string[] | &$inserted | |
string[] | $track | |
- Returns
- bool Has successfully inserted the content object
◆ onBeforePageDisplay()
MediaWiki\Extension\WikiLambda\Hooks::onBeforePageDisplay |
( |
| $out, |
|
|
| $skin ) |
◆ onCodeEditorGetPageLanguage()
static MediaWiki\Extension\WikiLambda\Hooks::onCodeEditorGetPageLanguage |
( |
Title | $title, |
|
|
& | $lang ) |
|
static |
Declare ZObjects as JSON-dervied, so that (for now) they can be edited directing using the CodeEditor extension.
- Parameters
-
- Returns
- bool
◆ onGetUserPermissionsErrors()
MediaWiki\Extension\WikiLambda\Hooks::onGetUserPermissionsErrors |
( |
| $title, |
|
|
| $user, |
|
|
| $action, |
|
|
& | $result ) |
◆ onHtmlPageLinkRendererEnd()
MediaWiki\Extension\WikiLambda\Hooks::onHtmlPageLinkRendererEnd |
( |
| $linkRenderer, |
|
|
| $linkTarget, |
|
|
| $isKnown, |
|
|
& | $text, |
|
|
& | $attribs, |
|
|
& | $ret ) |
◆ onLoadExtensionSchemaUpdates()
MediaWiki\Extension\WikiLambda\Hooks::onLoadExtensionSchemaUpdates |
( |
| $updater | ) |
|
◆ onMultiContentSave()
MediaWiki\Extension\WikiLambda\Hooks::onMultiContentSave |
( |
| $renderedRevision, |
|
|
| $user, |
|
|
| $summary, |
|
|
| $flags, |
|
|
| $hookStatus ) |
◆ onNamespaceIsMovable()
MediaWiki\Extension\WikiLambda\Hooks::onNamespaceIsMovable |
( |
| $index, |
|
|
& | $result ) |
◆ onParserFirstCallInit()
MediaWiki\Extension\WikiLambda\Hooks::onParserFirstCallInit |
( |
| $parser | ) |
|
◆ parserFunctionCallback()
static MediaWiki\Extension\WikiLambda\Hooks::parserFunctionCallback |
( |
Parser | $parser, |
|
|
| $frame, |
|
|
| $args = [] ) |
|
static |
- Parameters
-
Parser | $parser | |
PPFrame | $frame | |
array | $args | |
- Returns
- array
The documentation for this class was generated from the following file: