MediaWiki REL1_32
CodeEditorHooks Class Reference

Static Public Member Functions

static editPageShowEditFormInitial ( $editpage, $output)
 
static getPageLanguage (Title $title, $model, $format)
 
static getPreferences ( $user, &$defaultPreferences)
 

Detailed Description

Definition at line 3 of file CodeEditorHooks.php.

Member Function Documentation

◆ editPageShowEditFormInitial()

static CodeEditorHooks::editPageShowEditFormInitial ( $editpage,
$output )
static
Parameters
EditPage$editpage
OutputPage$output
Returns
bool

Definition at line 49 of file CodeEditorHooks.php.

References $lang, $output, ExtensionRegistry\getInstance(), and getPageLanguage().

◆ getPageLanguage()

static CodeEditorHooks::getPageLanguage ( Title $title,
$model,
$format )
static
Parameters
Title$title
string$model
string$format
Returns
null|string

Definition at line 10 of file CodeEditorHooks.php.

References $lang, CONTENT_MODEL_CSS, CONTENT_MODEL_JAVASCRIPT, and CONTENT_MODEL_JSON.

Referenced by editPageShowEditFormInitial().

◆ getPreferences()

static CodeEditorHooks::getPreferences ( $user,
& $defaultPreferences )
static
Parameters
User$user
array&$defaultPreferences
Returns
bool

Definition at line 36 of file CodeEditorHooks.php.


The documentation for this class was generated from the following file: