Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\EntityId\EntityIdPager Interface Reference

A cursor for paging through EntityIds. More...

+ Inheritance diagram for Wikibase\DataModel\Services\EntityId\EntityIdPager:

Public Member Functions

 fetchIds ( $limit)
 Fetches the next batch of IDs.
 

Public Attributes

const NO_REDIRECTS = 'no'
 Omit redirects from entity listing.
 
const INCLUDE_REDIRECTS = 'include'
 Include redirects in entity listing.
 
const ONLY_REDIRECTS = 'only'
 Include only redirects in listing.
 

Detailed Description

A cursor for paging through EntityIds.

Since
3.7
Author
Daniel Kinzler

Member Function Documentation

◆ fetchIds()

Wikibase\DataModel\Services\EntityId\EntityIdPager::fetchIds ( $limit)

Fetches the next batch of IDs.

Calling this has the side effect of advancing the internal state of the page, typically implemented by some underlying resource such as a file pointer or a database connection.

Note
After some finite number of calls, this method should eventually return an empty list of IDs, indicating that no more IDs are available.
Since
3.7
Parameters
int$limitThe maximum number of IDs to return.
Returns
EntityId[] A list of EntityIds matching the given parameters. Will be empty if there are no more entities to list from the given offset.

Implemented in Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager, Wikibase\Repo\IO\EntityIdReader, and Wikibase\Repo\Store\Sql\SqlEntityIdPager.

Member Data Documentation

◆ INCLUDE_REDIRECTS

const Wikibase\DataModel\Services\EntityId\EntityIdPager::INCLUDE_REDIRECTS = 'include'

Include redirects in entity listing.

◆ NO_REDIRECTS

const Wikibase\DataModel\Services\EntityId\EntityIdPager::NO_REDIRECTS = 'no'

Omit redirects from entity listing.

◆ ONLY_REDIRECTS

const Wikibase\DataModel\Services\EntityId\EntityIdPager::ONLY_REDIRECTS = 'only'

Include only redirects in listing.


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