MediaWiki master
MediaWiki\EditPage\TextboxBuilder Class Reference

Helps EditPage build textboxes. More...

Public Member Functions

 addNewLineAtEnd ( $wikitext)
 
 buildTextboxAttribs ( $name, array $customAttribs, UserIdentity $user, PageIdentity $page)
 
 getTextboxProtectionCSSClasses (PageIdentity $page)
 
 mergeClassesIntoAttributes (array $classes, array $attribs)
 

Detailed Description

Helps EditPage build textboxes.

Stability: newable
Since
1.31
Author
Kunal Mehta legok.nosp@m.tm@d.nosp@m.ebian.nosp@m..org

Definition at line 36 of file TextboxBuilder.php.

Member Function Documentation

◆ addNewLineAtEnd()

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

Definition at line 42 of file TextboxBuilder.php.

◆ buildTextboxAttribs()

MediaWiki\EditPage\TextboxBuilder::buildTextboxAttribs ( $name,
array $customAttribs,
UserIdentity $user,
PageIdentity $page )
Parameters
string$name
mixed[]$customAttribs
UserIdentity$user
PageIdentity$page
Returns
mixed[]

Definition at line 103 of file TextboxBuilder.php.

References MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\User\Options\UserOptionsLookup\getOption().

◆ getTextboxProtectionCSSClasses()

MediaWiki\EditPage\TextboxBuilder::getTextboxProtectionCSSClasses ( PageIdentity $page)
Parameters
PageIdentity$page
Returns
string[]

Definition at line 73 of file TextboxBuilder.php.

References MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\Page\PageReference\getNamespace().

◆ mergeClassesIntoAttributes()

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

Definition at line 58 of file TextboxBuilder.php.


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