MediaWiki REL1_31
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 103 of file TextboxBuilder.php.

References $attribs, $customAttribs, and $name.

◆ getTextboxProtectionCSSClasses()

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

Definition at line 75 of file TextboxBuilder.php.

References MWNamespace\getRestrictionLevels().

◆ 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: