MediaWiki  1.34.0
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 $title, and User\getOption().

◆ getTextboxProtectionCSSClasses()

MediaWiki\EditPage\TextboxBuilder::getTextboxProtectionCSSClasses ( Title  $title)
Parameters
Title$title
Returns
string[]

Definition at line 75 of file TextboxBuilder.php.

References $title, and MediaWiki\MediaWikiServices\getInstance().

◆ mergeClassesIntoAttributes()

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

Definition at line 60 of file TextboxBuilder.php.


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