API module to associate two pages on two different sites with a Wikibase item.
More...
API module to associate two pages on two different sites with a Wikibase item.
Requires API write mode to be enabled.
- Copyright
- GPL-2.0-or-later
- Author
- John Erling Blad < jebla.nosp@m.d@gm.nosp@m.ail.c.nosp@m.om >
-
Addshore
◆ __construct()
Wikibase\Repo\Api\LinkTitles::__construct |
( |
ApiMain |
$mainModule, |
|
|
|
$moduleName, |
|
|
SiteLinkTargetProvider |
$siteLinkTargetProvider, |
|
|
ApiErrorReporter |
$errorReporter, |
|
|
array |
$siteLinkGroups, |
|
|
EntityRevisionLookup |
$revisionLookup, |
|
|
callable |
$resultBuilderInstantiator, |
|
|
callable |
$entitySavingHelperInstantiator |
|
) |
| |
- See also
- ApiBase::__construct
- Parameters
-
ApiMain | $mainModule | |
string | $moduleName | |
SiteLinkTargetProvider | $siteLinkTargetProvider | |
ApiErrorReporter | $errorReporter | |
array | $siteLinkGroups | |
EntityRevisionLookup | $revisionLookup | |
callable | $resultBuilderInstantiator | |
callable | $entitySavingHelperInstantiator | |
◆ buildResult()
Wikibase\Repo\Api\LinkTitles::buildResult |
( |
?Item |
$item, |
|
|
Status |
$status |
|
) |
| |
|
private |
◆ getAllowedParams()
Wikibase\Repo\Api\LinkTitles::getAllowedParams |
( |
| ) |
|
|
protected |
◆ getAttemptSaveStatus()
Wikibase\Repo\Api\LinkTitles::getAttemptSaveStatus |
( |
?Item |
$item, |
|
|
Summary |
$summary, |
|
|
|
$flags |
|
) |
| |
|
private |
- Parameters
-
Item | null | $item | |
Summary | $summary | |
int | $flags | |
- Returns
- Status
◆ getExamplesMessages()
Wikibase\Repo\Api\LinkTitles::getExamplesMessages |
( |
| ) |
|
|
protected |
◆ getSiteAndNormalizedPageName()
Wikibase\Repo\Api\LinkTitles::getSiteAndNormalizedPageName |
( |
SiteList |
$sites, |
|
|
|
$site, |
|
|
|
$pageTitle |
|
) |
| |
|
private |
- Parameters
-
SiteList | $sites | |
string | $site | |
string | $pageTitle | |
- Returns
- array ( Site $site, string $pageName ) -return array{0:Site,1:string}
◆ isWriteMode()
Wikibase\Repo\Api\LinkTitles::isWriteMode |
( |
| ) |
|
◆ needsToken()
Wikibase\Repo\Api\LinkTitles::needsToken |
( |
| ) |
|
- See also
- ApiBase::needsToken
- Returns
- string
◆ validateParameters()
Wikibase\Repo\Api\LinkTitles::validateParameters |
( |
array |
$params | ) |
|
|
protected |
- See also
- ModifyEntity::validateParameters
- Parameters
-
◆ $entitySavingHelper
Wikibase\Repo\Api\LinkTitles::$entitySavingHelper |
|
private |
◆ $errorReporter
Wikibase\Repo\Api\LinkTitles::$errorReporter |
|
private |
◆ $resultBuilder
Wikibase\Repo\Api\LinkTitles::$resultBuilder |
|
private |
◆ $revisionLookup
Wikibase\Repo\Api\LinkTitles::$revisionLookup |
|
private |
◆ $siteLinkGroups
Wikibase\Repo\Api\LinkTitles::$siteLinkGroups |
|
private |
◆ $siteLinkTargetProvider
Wikibase\Repo\Api\LinkTitles::$siteLinkTargetProvider |
|
private |
The documentation for this class was generated from the following file: