Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager Class Reference

The position markers are implementation dependent and are not interchangeable between different implementations. More...

+ Inheritance diagram for Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager:
+ Collaboration diagram for Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager:

Public Member Functions

 __construct (... $ids)
 
 addEntityId (EntityId $entityId)
 
 fetchIds ( $limit)
 
 getPosition ()
 
 setPosition ( $position)
 

Private Attributes

 $entityIds = []
 
 $offset = 0
 

Additional Inherited Members

- Public Attributes inherited from Wikibase\DataModel\Services\EntityId\EntityIdPager
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

The position markers are implementation dependent and are not interchangeable between different implementations.

Since
3.14
Author
Addshore
Jeroen De Dauw

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager::__construct ( $ids)
Parameters
EntityId...$ids

Member Function Documentation

◆ addEntityId()

Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager::addEntityId ( EntityId $entityId)

◆ fetchIds()

Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager::fetchIds ( $limit)
See also
EntityIdPager::fetchIds
Parameters
int$limit
Returns
EntityId[]

Implements Wikibase\DataModel\Services\EntityId\EntityIdPager.

◆ getPosition()

Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager::getPosition ( )
Returns
mixed Round trips with method setPosition

Implements Wikibase\DataModel\Services\EntityId\SeekableEntityIdPager.

◆ setPosition()

Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager::setPosition ( $position)
Parameters
mixed$positionRound trips with method getPosition

Implements Wikibase\DataModel\Services\EntityId\SeekableEntityIdPager.

Member Data Documentation

◆ $entityIds

Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager::$entityIds = []
private

◆ $offset

Wikibase\DataModel\Services\EntityId\InMemoryEntityIdPager::$offset = 0
private

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