MediaWiki
master
|
Helper for displaying edit conflicts in text content models to users. More...
Public Member Functions | |
__construct (Title $title, OutputPage $out, IBufferingStatsdDataFactory $stats, $submitLabel, ?IContentHandlerFactory $contentHandlerFactory=null) | |
getEditConflictMainTextBox (array $customAttribs=[]) | |
HTML to build the textbox1 on edit conflicts. More... | |
getEditFormHtmlAfterContent () | |
Content to go in the edit form after textbox1. More... | |
getEditFormHtmlBeforeContent () | |
Content to go in the edit form before textbox1. More... | |
getExplainHeader () | |
incrementConflictStats (User $user=null) | |
Record a user encountering an edit conflict. More... | |
incrementResolvedStats (User $user=null) | |
Record when a user has resolved an edit conflict. More... | |
setContentFormat ( $contentFormat) | |
setContentModel ( $contentModel) | |
setTextboxes ( $yourtext, $storedversion) | |
showEditFormTextAfterFooters () | |
Content to go in the edit form after the footers (templates on this page, hidden categories, limit report) More... | |
Public Attributes | |
null string | $contentFormat |
null string | $contentModel |
Protected Member Functions | |
incrementStatsByUserEdits ( $userEdits, $keyPrefixBase) | |
Protected Attributes | |
OutputPage | $out |
IBufferingStatsdDataFactory | $stats |
string | $storedversion = '' |
string | $submitLabel |
Message key for submit button's label. More... | |
Title | $title |
string | $yourtext = '' |
Helper for displaying edit conflicts in text content models to users.
Definition at line 40 of file TextConflictHelper.php.
MediaWiki\EditPage\TextConflictHelper::__construct | ( | Title | $title, |
OutputPage | $out, | ||
IBufferingStatsdDataFactory | $stats, | ||
$submitLabel, | |||
?IContentHandlerFactory | $contentHandlerFactory = null |
||
) |
Title | $title | |
OutputPage | $out | |
IBufferingStatsdDataFactory | $stats | |
string | $submitLabel | |
IContentHandlerFactory | null | $contentHandlerFactory | Required param with legacy support |
MWUnknownContentModelException |
Definition at line 96 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$out, MediaWiki\EditPage\TextConflictHelper\$stats, MediaWiki\EditPage\TextConflictHelper\$submitLabel, MediaWiki\EditPage\TextConflictHelper\$title, MediaWiki\Content\IContentHandlerFactory\getContentHandler(), MediaWiki\Title\Title\getContentModel(), MediaWiki\MediaWikiServices\getInstance(), and wfDeprecated().
MediaWiki\EditPage\TextConflictHelper::getEditConflictMainTextBox | ( | array | $customAttribs = [] | ) |
HTML to build the textbox1 on edit conflicts.
array | $customAttribs |
Definition at line 218 of file TextConflictHelper.php.
References MediaWiki\Html\Html\textarea().
MediaWiki\EditPage\TextConflictHelper::getEditFormHtmlAfterContent | ( | ) |
Content to go in the edit form after textbox1.
Definition at line 260 of file TextConflictHelper.php.
MediaWiki\EditPage\TextConflictHelper::getEditFormHtmlBeforeContent | ( | ) |
Content to go in the edit form before textbox1.
Definition at line 250 of file TextConflictHelper.php.
MediaWiki\EditPage\TextConflictHelper::getExplainHeader | ( | ) |
Definition at line 204 of file TextConflictHelper.php.
References MediaWiki\Html\Html\rawElement().
MediaWiki\EditPage\TextConflictHelper::incrementConflictStats | ( | User | $user = null | ) |
Record a user encountering an edit conflict.
User | null | $user |
Definition at line 143 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\incrementStatsByUserEdits(), NS_CATEGORY_TALK, and NS_MAIN.
MediaWiki\EditPage\TextConflictHelper::incrementResolvedStats | ( | User | $user = null | ) |
Record when a user has resolved an edit conflict.
User | null | $user |
Definition at line 163 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\incrementStatsByUserEdits(), NS_CATEGORY_TALK, and NS_MAIN.
|
protected |
int | null | $userEdits | |
string | $keyPrefixBase |
Definition at line 186 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\incrementConflictStats(), and MediaWiki\EditPage\TextConflictHelper\incrementResolvedStats().
MediaWiki\EditPage\TextConflictHelper::setContentFormat | ( | $contentFormat | ) |
string | $contentFormat |
Definition at line 135 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$contentFormat.
MediaWiki\EditPage\TextConflictHelper::setContentModel | ( | $contentModel | ) |
string | $contentModel |
Definition at line 128 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$contentModel.
MediaWiki\EditPage\TextConflictHelper::setTextboxes | ( | $yourtext, | |
$storedversion | |||
) |
string | $yourtext | |
string | $storedversion |
Definition at line 120 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$storedversion, and MediaWiki\EditPage\TextConflictHelper\$yourtext.
MediaWiki\EditPage\TextConflictHelper::showEditFormTextAfterFooters | ( | ) |
Content to go in the edit form after the footers (templates on this page, hidden categories, limit report)
Definition at line 268 of file TextConflictHelper.php.
References MediaWiki\Html\Html\textarea().
null string MediaWiki\EditPage\TextConflictHelper::$contentFormat |
Definition at line 55 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\setContentFormat().
null string MediaWiki\EditPage\TextConflictHelper::$contentModel |
Definition at line 50 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\setContentModel().
|
protected |
Definition at line 60 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\__construct().
|
protected |
Definition at line 65 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\__construct().
|
protected |
Definition at line 80 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\setTextboxes().
|
protected |
Message key for submit button's label.
Definition at line 70 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\__construct().
|
protected |
Definition at line 45 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\__construct().
|
protected |
Definition at line 75 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\setTextboxes().