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.

Since
1.31

Definition at line 38 of file TextboxBuilder.php.

Member Function Documentation

◆ addNewLineAtEnd()

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

Definition at line 44 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 106 of file TextboxBuilder.php.

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

◆ getTextboxProtectionCSSClasses()

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

Definition at line 76 of file TextboxBuilder.php.

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

◆ mergeClassesIntoAttributes()

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

Definition at line 61 of file TextboxBuilder.php.

References Sanitizer\mergeAttributes().


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