MediaWiki REL1_35
|
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. | |
getEditFormHtmlAfterContent () | |
Content to go in the edit form after textbox1. | |
getEditFormHtmlBeforeContent () | |
Content to go in the edit form before textbox1. | |
getExplainHeader () | |
incrementConflictStats (User $user=null) | |
Record a user encountering an edit conflict. | |
incrementResolvedStats (User $user=null) | |
Record when a user has resolved an edit conflict. | |
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) | |
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. | |
Title | $title |
string | $yourtext = '' |
Private Member Functions | |
toEditContent ( $text) | |
Private Attributes | |
IContentHandlerFactory | $contentHandlerFactory |
Helper for displaying edit conflicts in text content models to users.
Definition at line 44 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 100 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$contentHandlerFactory, MediaWiki\EditPage\TextConflictHelper\$out, MediaWiki\EditPage\TextConflictHelper\$stats, MediaWiki\EditPage\TextConflictHelper\$submitLabel, MediaWiki\EditPage\TextConflictHelper\$title, MediaWiki\Content\IContentHandlerFactory\getContentHandler(), 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 222 of file TextConflictHelper.php.
Referenced by EditPage\showEditForm().
MediaWiki\EditPage\TextConflictHelper::getEditFormHtmlAfterContent | ( | ) |
Content to go in the edit form after textbox1.
Definition at line 264 of file TextConflictHelper.php.
Referenced by EditPage\showEditForm().
MediaWiki\EditPage\TextConflictHelper::getEditFormHtmlBeforeContent | ( | ) |
Content to go in the edit form before textbox1.
Definition at line 254 of file TextConflictHelper.php.
Referenced by EditPage\showEditForm().
MediaWiki\EditPage\TextConflictHelper::getExplainHeader | ( | ) |
Definition at line 208 of file TextConflictHelper.php.
MediaWiki\EditPage\TextConflictHelper::incrementConflictStats | ( | User | $user = null | ) |
Record a user encountering an edit conflict.
User | null | $user |
Definition at line 147 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 167 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\incrementStatsByUserEdits(), NS_CATEGORY_TALK, and NS_MAIN.
|
protected |
int | null | $userEdits | |
string | $keyPrefixBase |
Definition at line 190 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 139 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\$contentFormat.
Referenced by EditPage\showEditForm().
MediaWiki\EditPage\TextConflictHelper::setContentModel | ( | $contentModel | ) |
string | $contentModel |
Definition at line 132 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 124 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 272 of file TextConflictHelper.php.
References MediaWiki\EditPage\TextConflictHelper\toEditContent().
|
private |
string | $text |
Definition at line 305 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\showEditFormTextAfterFooters().
null string MediaWiki\EditPage\TextConflictHelper::$contentFormat |
Definition at line 59 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\setContentFormat().
|
private |
Definition at line 89 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\__construct().
null string MediaWiki\EditPage\TextConflictHelper::$contentModel |
Definition at line 54 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\setContentModel().
|
protected |
Definition at line 64 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\__construct().
|
protected |
Definition at line 69 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\__construct().
|
protected |
Definition at line 84 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\setTextboxes().
|
protected |
Message key for submit button's label.
Definition at line 74 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\__construct().
|
protected |
Definition at line 49 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\__construct().
|
protected |
Definition at line 79 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\TextConflictHelper\setTextboxes().