◆ __construct()
- Parameters
-
NamespaceChecker | $namespaceChecker | |
RepoLinker | $repoLinker | |
EntityIdParser | $entityIdParser | |
string | $langLinkSiteGroup | |
string | $siteGlobalId | |
◆ canHaveLink()
Wikibase\Client\RepoItemLinkGenerator::canHaveLink |
( |
Title | $title, |
|
|
| $action, |
|
|
?array | $noExternalLangLinks ) |
|
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 |
( |
IContextSource | $context, |
|
|
?EntityId | $entityId ) |
|
private |
Links to the item or Special:NewItem on the repo.
The link might get overwritten by the JavaScript add links widget.
- Parameters
-
IContextSource | $context | |
EntityId | null | $entityId | Entity which $title is linked to |
- Returns
- string HTML
◆ getEditLinksLink()
Wikibase\Client\RepoItemLinkGenerator::getEditLinksLink |
( |
IContextSource | $context, |
|
|
EntityId | $entityId ) |
|
private |
- Parameters
-
IContextSource | $context | |
EntityId | $entityId | |
- Returns
- string HTML
◆ getEntityUrl()
Wikibase\Client\RepoItemLinkGenerator::getEntityUrl |
( |
EntityId | $entityId | ) |
|
|
private |
- Parameters
-
- Returns
- string HTML unsafe
◆ getLink()
Wikibase\Client\RepoItemLinkGenerator::getLink |
( |
IContextSource | $context, |
|
|
| $action, |
|
|
| $hasLangLinks, |
|
|
?array | $noExternalLangLinks, |
|
|
| $prefixedId ) |
- Parameters
-
IContextSource | $context | |
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 | ) |
|
|
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: