Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
SMW\MediaWiki\LinkBatch Class Reference

Public Member Functions

 __construct (\LinkBatch $linkBatch=null)
 
 setCaller ( $caller)
 
 addFromList (array $dataItems)
 
 add ( $dataItem)
 
 has ( $dataItem)
 
 execute ()
 

Static Public Member Functions

static singleton ()
 
static reset ()
 

Detailed Description

Isolate access to the LinkBatch class which allows to bulk load a list of titles into the LinkCache.

GNU GPL v2+

Since
3.1
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\LinkBatch::__construct ( \LinkBatch  $linkBatch = null)
Since
3.1
Parameters
LinkBatch | null$linkBatch

Member Function Documentation

◆ add()

SMW\MediaWiki\LinkBatch::add (   $dataItem)
Since
3.1
Parameters
$dataItem

◆ addFromList()

SMW\MediaWiki\LinkBatch::addFromList ( array  $dataItems)
Since
3.1
Parameters
DataItem[]$dataItems

◆ execute()

SMW\MediaWiki\LinkBatch::execute ( )
Since
3.1

◆ has()

SMW\MediaWiki\LinkBatch::has (   $dataItem)
Since
3.1
Parameters
DataItem | null | false$dataItem
Returns
boolean

◆ reset()

static SMW\MediaWiki\LinkBatch::reset ( )
static
Since
3.1

◆ setCaller()

SMW\MediaWiki\LinkBatch::setCaller (   $caller)
Since
3.1
Parameters
string$caller

◆ singleton()

static SMW\MediaWiki\LinkBatch::singleton ( )
static
Since
3.1
Returns
LinkBatch

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

About | General disclaimer | Privacy policy