Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataAccess\ByTypeDispatchingEntityPrefetcher Class Reference
+ Inheritance diagram for Wikibase\DataAccess\ByTypeDispatchingEntityPrefetcher:
+ Collaboration diagram for Wikibase\DataAccess\ByTypeDispatchingEntityPrefetcher:

Public Member Functions

 __construct (array $prefetchers)
 
 prefetch (array $entityIds)
 
 purge (EntityId $entityId)
 Purges prefetched data about a given entity.
 
 purgeAll ()
 Purges all prefetched data.
 

Private Member Functions

 getServiceForEntityType ( $entityType)
 

Private Attributes

 $prefetchers
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataAccess\ByTypeDispatchingEntityPrefetcher::__construct ( array $prefetchers)

Member Function Documentation

◆ getServiceForEntityType()

Wikibase\DataAccess\ByTypeDispatchingEntityPrefetcher::getServiceForEntityType ( $entityType)
private
Parameters
string$entityType
Returns
EntityPrefetcher|null

◆ prefetch()

Wikibase\DataAccess\ByTypeDispatchingEntityPrefetcher::prefetch ( array $entityIds)
Parameters
EntityId[]$entityIds

Implements Wikibase\DataModel\Services\Entity\EntityPrefetcher.

◆ purge()

Wikibase\DataAccess\ByTypeDispatchingEntityPrefetcher::purge ( EntityId $entityId)

Purges prefetched data about a given entity.

Parameters
EntityId$entityId

Implements Wikibase\DataModel\Services\Entity\EntityPrefetcher.

◆ purgeAll()

Wikibase\DataAccess\ByTypeDispatchingEntityPrefetcher::purgeAll ( )

Purges all prefetched data.

Implements Wikibase\DataModel\Services\Entity\EntityPrefetcher.

Member Data Documentation

◆ $prefetchers

Wikibase\DataAccess\ByTypeDispatchingEntityPrefetcher::$prefetchers
private

The documentation for this class was generated from the following file: