MediaWiki REL1_34
CodeEditorHooks Class Reference

Static Public Member Functions

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

Detailed Description

Definition at line 3 of file CodeEditorHooks.php.

Member Function Documentation

◆ editPageShowEditFormInitial()

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

◆ 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, $title, CONTENT_MODEL_CSS, CONTENT_MODEL_JAVASCRIPT, and CONTENT_MODEL_JSON.

Referenced by editPageShowEditFormInitial().

◆ getPreferences()

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

Definition at line 31 of file CodeEditorHooks.php.


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