Update Wikibase ParserOutput properties and extension data.
More...
|
| __construct (OtherProjectsSidebarGeneratorFactory $otherProjectsSidebarGeneratorFactory, SiteLinkLookup $siteLinkLookup, EntityLookup $entityLookup, UsageAccumulatorFactory $usageAccumulatorFactory, string $siteId, ?LoggerInterface $logger=null) |
|
| updateItemIdProperty (Title $title, ParserOutputProvider $parserOutputProvider) |
| Add wikibase_item parser output property.
|
|
| updateTrackingCategories (Title $title, ParserOutputProvider $parserOutputProvider) |
| Add tracking category if the page is a redirect and is connected to an item.
|
|
| updateOtherProjectsLinksData (Title $title, ParserOutputProvider $parserOutputProvider) |
|
| updateUnconnectedPageProperty (Content $content, Title $title, ParserOutputProvider $parserOutputProvider) |
| Writes the "unexpectedUnconnectedPage" page property if this page is not linked to an item and doesn't have the "__EXPECTED_UNCONNECTED_PAGE__" magic word on it.
|
|
| updateBadgesProperty (Title $title, ParserOutputProvider $parserOutputProvider) |
|
Update Wikibase ParserOutput properties and extension data.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
◆ __construct()
- Parameters
-
OtherProjectsSidebarGeneratorFactory | $otherProjectsSidebarGeneratorFactory | Use the factory here to defer initialization of things like Site objects. |
SiteLinkLookup | $siteLinkLookup | |
EntityLookup | $entityLookup | |
UsageAccumulatorFactory | $usageAccumulatorFactory | |
string | $siteId | The global site ID for the local wiki |
LoggerInterface | null | $logger | |
- Exceptions
-
◆ getItemIdForTitle()
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::getItemIdForTitle |
( |
Title | $title | ) |
|
|
private |
◆ updateBadgesProperty()
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::updateBadgesProperty |
( |
Title | $title, |
|
|
ParserOutputProvider | $parserOutputProvider ) |
◆ updateItemIdProperty()
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::updateItemIdProperty |
( |
Title | $title, |
|
|
ParserOutputProvider | $parserOutputProvider ) |
Add wikibase_item parser output property.
◆ updateOtherProjectsLinksData()
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::updateOtherProjectsLinksData |
( |
Title | $title, |
|
|
ParserOutputProvider | $parserOutputProvider ) |
◆ updateTrackingCategories()
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::updateTrackingCategories |
( |
Title | $title, |
|
|
ParserOutputProvider | $parserOutputProvider ) |
Add tracking category if the page is a redirect and is connected to an item.
◆ updateUnconnectedPageProperty()
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::updateUnconnectedPageProperty |
( |
Content | $content, |
|
|
Title | $title, |
|
|
ParserOutputProvider | $parserOutputProvider ) |
Writes the "unexpectedUnconnectedPage" page property if this page is not linked to an item and doesn't have the "__EXPECTED_UNCONNECTED_PAGE__" magic word on it.
◆ $entityLookup
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$entityLookup |
|
private |
◆ $logger
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$logger |
|
private |
◆ $otherProjectsSidebarGeneratorFactory
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$otherProjectsSidebarGeneratorFactory |
|
private |
◆ $siteId
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$siteId |
|
private |
◆ $siteLinkLookup
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$siteLinkLookup |
|
private |
◆ $usageAccumulatorFactory
Wikibase\Client\ParserOutput\ClientParserOutputDataUpdater::$usageAccumulatorFactory |
|
private |
The documentation for this class was generated from the following file: