◆ __construct()
- Parameters
-
NamespaceChecker | $namespaceChecker | |
RepoLinker | $repoLinker | |
EntityIdParser | $entityIdParser | |
string | $langLinkSiteGroup | |
string | $siteGlobalId | |
◆ canHaveLink()
Wikibase\Client\RepoItemLinkGenerator::canHaveLink |
( |
Title |
$title, |
|
|
|
$action, |
|
|
array |
$noExternalLangLinks = null |
|
) |
| |
|
private |
- Parameters
-
Title | $title | |
string | $action | |
string[] | null | $noExternalLangLinks | |
- Returns
- bool
◆ formatLink()
Wikibase\Client\RepoItemLinkGenerator::formatLink |
( |
array |
$linkAttribs, |
|
|
|
$action, |
|
|
|
$text |
|
) |
| |
|
private |
- Parameters
-
array | $linkAttribs | |
string | $action | |
string | $text | |
- Returns
- string HTML
◆ getAddLinksLink()
Wikibase\Client\RepoItemLinkGenerator::getAddLinksLink |
( |
Title |
$title, |
|
|
EntityId |
$entityId = null |
|
) |
| |
|
private |
Links to the item or Special:NewItem on the repo.
The link might get overwritten by the JavaScript add links widget.
- Parameters
-
Title | $title | |
EntityId | null | $entityId | Entity which $title is linked to |
- Returns
- string HTML
◆ getEditLinksLink()
Wikibase\Client\RepoItemLinkGenerator::getEditLinksLink |
( |
EntityId |
$entityId | ) |
|
|
private |
- Parameters
-
- Returns
- string HTML
◆ getEntityUrl()
Wikibase\Client\RepoItemLinkGenerator::getEntityUrl |
( |
EntityId |
$entityId | ) |
|
|
private |
- Parameters
-
- Returns
- string HTML unsafe
◆ getLink()
Wikibase\Client\RepoItemLinkGenerator::getLink |
( |
Title |
$title, |
|
|
|
$action, |
|
|
|
$hasLangLinks, |
|
|
?array |
$noExternalLangLinks, |
|
|
|
$prefixedId |
|
) |
| |
- Parameters
-
Title | $title | |
string | $action | |
bool | $hasLangLinks | |
string[] | null | $noExternalLangLinks | |
string | null | $prefixedId | |
- Returns
- string|null HTML or null for no link
◆ getNewItemUrl()
Wikibase\Client\RepoItemLinkGenerator::getNewItemUrl |
( |
Title |
$title | ) |
|
|
private |
◆ isSuppressed()
Wikibase\Client\RepoItemLinkGenerator::isSuppressed |
( |
array |
$noExternalLangLinks = null | ) |
|
|
private |
- Parameters
-
string[] | null | $noExternalLangLinks | |
- Returns
- bool
◆ $entityIdParser
Wikibase\Client\RepoItemLinkGenerator::$entityIdParser |
|
private |
◆ $langLinkSiteGroup
Wikibase\Client\RepoItemLinkGenerator::$langLinkSiteGroup |
|
private |
◆ $namespaceChecker
Wikibase\Client\RepoItemLinkGenerator::$namespaceChecker |
|
private |
◆ $repoLinker
Wikibase\Client\RepoItemLinkGenerator::$repoLinker |
|
private |
◆ $siteGlobalId
Wikibase\Client\RepoItemLinkGenerator::$siteGlobalId |
|
private |
The documentation for this class was generated from the following file: