|
MediaWiki master
|
Helper for displaying edit conflicts in text content models to users. More...
Public Member Functions | |
| __construct (protected readonly Title $title, protected readonly OutputPage $out, protected readonly StatsFactory $stats, protected readonly string $submitLabel, private readonly IContentHandlerFactory $contentHandlerFactory, ?TextboxBuilder $textboxBuilder=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 (string $contentFormat) | |
| setContentModel (string $contentModel) | |
| setTextboxes (string $yourtext, string $storedversion) | |
| showEditFormTextAfterFooters () | |
| Content to go in the edit form after the footers (templates on this page, hidden categories, limit report) | |
Public Attributes | |
| string | $contentFormat = null |
| string | $contentModel = null |
Protected Member Functions | |
| getUserBucket (?int $userEdits) | |
Protected Attributes | |
| string | $storedversion = '' |
| string | $yourtext = '' |
Helper for displaying edit conflicts in text content models to users.
Definition at line 26 of file TextConflictHelper.php.
| MediaWiki\EditPage\TextConflictHelper::__construct | ( | protected readonly Title | $title, |
| protected readonly OutputPage | $out, | ||
| protected readonly StatsFactory | $stats, | ||
| protected readonly string | $submitLabel, | ||
| private readonly IContentHandlerFactory | $contentHandlerFactory, | ||
| ?TextboxBuilder | $textboxBuilder = null ) |
| Title | $title | |
| OutputPage | $out | |
| StatsFactory | $stats | |
| string | $submitLabel | Message key for the label of the submit button |
| IContentHandlerFactory | $contentHandlerFactory | Required param with legacy support |
| TextboxBuilder | null | $textboxBuilder |
| UnknownContentModelException |
Definition at line 46 of file TextConflictHelper.php.
References MediaWiki\MediaWikiServices\getInstance().
| MediaWiki\EditPage\TextConflictHelper::getEditConflictMainTextBox | ( | array | $customAttribs = [] | ) |
HTML to build the textbox1 on edit conflicts.
Definition at line 158 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\EditPage\showEditForm().
| MediaWiki\EditPage\TextConflictHelper::getEditFormHtmlAfterContent | ( | ) |
Content to go in the edit form after textbox1.
Definition at line 200 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\EditPage\showEditForm().
| MediaWiki\EditPage\TextConflictHelper::getEditFormHtmlBeforeContent | ( | ) |
Content to go in the edit form before textbox1.
Definition at line 190 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\EditPage\showEditForm().
| MediaWiki\EditPage\TextConflictHelper::getExplainHeader | ( | ) |
Definition at line 145 of file TextConflictHelper.php.
|
protected |
Definition at line 128 of file TextConflictHelper.php.
| MediaWiki\EditPage\TextConflictHelper::incrementConflictStats | ( | ?User | $user = null | ) |
Record a user encountering an edit conflict.
Definition at line 79 of file TextConflictHelper.php.
| MediaWiki\EditPage\TextConflictHelper::incrementResolvedStats | ( | ?User | $user = null | ) |
Record when a user has resolved an edit conflict.
Definition at line 104 of file TextConflictHelper.php.
| MediaWiki\EditPage\TextConflictHelper::setContentFormat | ( | string | $contentFormat | ) |
Definition at line 72 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\EditPage\showEditForm().
| MediaWiki\EditPage\TextConflictHelper::setContentModel | ( | string | $contentModel | ) |
Definition at line 68 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\EditPage\showEditForm().
| MediaWiki\EditPage\TextConflictHelper::setTextboxes | ( | string | $yourtext, |
| string | $storedversion ) |
Definition at line 63 of file TextConflictHelper.php.
Referenced by MediaWiki\EditPage\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 208 of file TextConflictHelper.php.
| string MediaWiki\EditPage\TextConflictHelper::$contentFormat = null |
Definition at line 29 of file TextConflictHelper.php.
| string MediaWiki\EditPage\TextConflictHelper::$contentModel = null |
Definition at line 28 of file TextConflictHelper.php.
|
protected |
Definition at line 32 of file TextConflictHelper.php.
|
protected |
Definition at line 31 of file TextConflictHelper.php.