MediaWiki
1.34.0
|
Helper for displaying edit conflicts in text content models to users. More...
Public Member Functions | |
__construct (Title $title, OutputPage $out, IBufferingStatsdDataFactory $stats, $submitLabel) | |
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 () | |
Record a user encountering an edit conflict. More... | |
incrementResolvedStats () | |
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 |
null string | $contentModel = null |
Protected Attributes | |
OutputPage | $out |
IBufferingStatsdDataFactory | $stats |
string | $storedversion = '' |
string | $submitLabel |
Message key for submit button's label. More... | |
Title | $title |
string | $yourtext = '' |
Private Member Functions | |
toEditContent ( $text) | |
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 | |||
) |
Title | $title | |
OutputPage | $out | |
IBufferingStatsdDataFactory | $stats | |
string | $submitLabel |
Definition at line 88 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$out, MediaWiki\EditPage\TextConflictHelper\$stats, MediaWiki\EditPage\TextConflictHelper\$submitLabel, MediaWiki\EditPage\TextConflictHelper\$title, Title\getContentModel(), and ContentHandler\getForModelID().
MediaWiki\EditPage\TextConflictHelper::getEditConflictMainTextBox | ( | array | $customAttribs = [] | ) |
HTML to build the textbox1 on edit conflicts.
array | $customAttribs |
Definition at line 170 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$title.
Referenced by EditPage\showEditForm().
MediaWiki\EditPage\TextConflictHelper::getEditFormHtmlAfterContent | ( | ) |
Content to go in the edit form after textbox1.
Definition at line 207 of file TextConflictHelper.php.
Referenced by EditPage\showEditForm().
MediaWiki\EditPage\TextConflictHelper::getEditFormHtmlBeforeContent | ( | ) |
Content to go in the edit form before textbox1.
Definition at line 197 of file TextConflictHelper.php.
Referenced by EditPage\showEditForm().
MediaWiki\EditPage\TextConflictHelper::getExplainHeader | ( | ) |
Definition at line 157 of file TextConflictHelper.php.
MediaWiki\EditPage\TextConflictHelper::incrementConflictStats | ( | ) |
Record a user encountering an edit conflict.
Definition at line 125 of file TextConflictHelper.php.
References NS_CATEGORY_TALK, and NS_MAIN.
MediaWiki\EditPage\TextConflictHelper::incrementResolvedStats | ( | ) |
Record when a user has resolved an edit conflict.
Definition at line 141 of file TextConflictHelper.php.
References NS_CATEGORY_TALK, and NS_MAIN.
MediaWiki\EditPage\TextConflictHelper::setContentFormat | ( | $contentFormat | ) |
string | $contentFormat |
Definition at line 118 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$contentFormat.
Referenced by EditPage\showEditForm().
MediaWiki\EditPage\TextConflictHelper::setContentModel | ( | $contentModel | ) |
string | $contentModel |
Definition at line 111 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$contentModel.
Referenced by EditPage\showEditForm().
MediaWiki\EditPage\TextConflictHelper::setTextboxes | ( | $yourtext, | |
$storedversion | |||
) |
string | $yourtext | |
string | $storedversion |
Definition at line 103 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$storedversion, and MediaWiki\EditPage\TextConflictHelper\$yourtext.
Referenced by EditPage\showEditForm().
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 215 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$title, ContentHandler\getForModelID(), and MediaWiki\EditPage\TextConflictHelper\toEditContent().
|
private |
string | $text |
Definition at line 248 of file TextConflictHelper.php.
References ContentHandler\makeContent().
Referenced by MediaWiki\EditPage\TextConflictHelper\showEditFormTextAfterFooters().
null string MediaWiki\EditPage\TextConflictHelper::$contentFormat = null |
Definition at line 55 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\setContentFormat().
null string MediaWiki\EditPage\TextConflictHelper::$contentModel = null |
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(), MediaWiki\EditPage\TextConflictHelper\getEditConflictMainTextBox(), and MediaWiki\EditPage\TextConflictHelper\showEditFormTextAfterFooters().
|
protected |
Definition at line 75 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\setTextboxes().