Abstract base class for special pages of the WikibaseRepo extension.
More...
Abstract base class for special pages of the WikibaseRepo extension.
- Copyright
- GPL-2.0-or-later
- Author
- Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
◆ __construct()
- Parameters
-
string | $title | The title of the special page |
string | $restriction | The required user right |
string[] | $tags | List of tags to add to edits |
SpecialPageCopyrightView | $copyrightView | |
SummaryFormatter | $summaryFormatter | |
EntityTitleLookup | $entityTitleLookup | |
MediaWikiEditEntityFactory | $editEntityFactory | |
◆ getCopyrightHTML()
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::getCopyrightHTML |
( |
| $saveMessageKey = null | ) |
|
|
protected |
◆ getEditEntity()
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::getEditEntity |
( |
| ) |
|
|
protected |
Returns the EditEntity interactor.
- Note
- Call only after calling prepareEditEntity() first.
- Returns
- EditEntity
◆ getEntityTitle()
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::getEntityTitle |
( |
EntityId | $id | ) |
|
|
protected |
- Parameters
-
- Returns
- null|Title
◆ parseEntityId()
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::parseEntityId |
( |
| $rawId | ) |
|
|
protected |
Parses an entity id.
- Parameters
-
- Returns
- EntityId
- Exceptions
-
◆ parseItemId()
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::parseItemId |
( |
| $rawId | ) |
|
|
protected |
Parses an item id.
- Parameters
-
- Returns
- ItemId
- Exceptions
-
◆ prepareEditEntity()
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::prepareEditEntity |
( |
EntityId | $id = null, |
|
|
| $baseRev = 0 ) |
|
protected |
- Parameters
-
EntityId | null | $id | |
int | $baseRev | |
- Returns
- EditEntity
◆ saveEntity()
Saves the entity using the given summary.
- Note
- Call prepareEditEntity() first.
- Parameters
-
EntityDocument | $entity | |
FormatableSummary | $summary | |
string | $token | |
int | $flags | The edit flags (see WikiPage::doEditContent) |
- Returns
- Status
◆ $copyrightView
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::$copyrightView |
|
private |
◆ $editEntity
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::$editEntity = null |
|
private |
◆ $editEntityFactory
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::$editEntityFactory |
|
private |
◆ $entityTitleLookup
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::$entityTitleLookup |
|
private |
◆ $summaryFormatter
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::$summaryFormatter |
|
protected |
◆ $tags
Wikibase\Repo\Specials\SpecialWikibaseRepoPage::$tags |
|
private |
The documentation for this class was generated from the following file: