MediaWiki  master
MediaWiki\EditPage\TextboxBuilder Class Reference

Helps EditPage build textboxes. More...

Public Member Functions

 addNewLineAtEnd ( $wikitext)
 
 buildTextboxAttribs ( $name, array $customAttribs, User $user, Title $title)
 
 getTextboxProtectionCSSClasses (Title $title)
 
 mergeClassesIntoAttributes (array $classes, array $attribs)
 

Detailed Description

Helps EditPage build textboxes.

Since
1.31

Definition at line 37 of file TextboxBuilder.php.

Member Function Documentation

◆ addNewLineAtEnd()

MediaWiki\EditPage\TextboxBuilder::addNewLineAtEnd (   $wikitext)
Parameters
string$wikitext
Returns
string

Definition at line 43 of file TextboxBuilder.php.

◆ buildTextboxAttribs()

MediaWiki\EditPage\TextboxBuilder::buildTextboxAttribs (   $name,
array  $customAttribs,
User  $user,
Title  $title 
)
Parameters
string$name
mixed[]$customAttribs
User$user
Title$title
Returns
mixed[]

Definition at line 104 of file TextboxBuilder.php.

References $attribs, $name, User\getOption(), and Title\getPageLanguage().

◆ getTextboxProtectionCSSClasses()

MediaWiki\EditPage\TextboxBuilder::getTextboxProtectionCSSClasses ( Title  $title)

◆ mergeClassesIntoAttributes()

MediaWiki\EditPage\TextboxBuilder::mergeClassesIntoAttributes ( array  $classes,
array  $attribs 
)
Parameters
string[]$classes
mixed[]$attribs
Returns
mixed[]

Definition at line 60 of file TextboxBuilder.php.

References $attribs, and Sanitizer\mergeAttributes().


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