Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Store\Sql\SqlChangeStore Class Reference
+ Inheritance diagram for Wikibase\Lib\Store\Sql\SqlChangeStore:
+ Collaboration diagram for Wikibase\Lib\Store\Sql\SqlChangeStore:

Public Member Functions

 __construct (ILoadBalancer $loadBalancer)
 
 saveChange (Change $change)
 Saves the change to a database table. More...
 

Private Member Functions

 updateChange (ChangeRow $change)
 
 insertChange (ChangeRow $change)
 
 getValues (ChangeRow $change)
 

Private Attributes

 $loadBalancer
 

Detailed Description

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\Sql\SqlChangeStore::__construct ( ILoadBalancer  $loadBalancer)

Member Function Documentation

◆ getValues()

Wikibase\Lib\Store\Sql\SqlChangeStore::getValues ( ChangeRow  $change)
private
Parameters
ChangeRow$change
Returns
array

◆ insertChange()

Wikibase\Lib\Store\Sql\SqlChangeStore::insertChange ( ChangeRow  $change)
private

◆ saveChange()

Wikibase\Lib\Store\Sql\SqlChangeStore::saveChange ( Change  $change)

Saves the change to a database table.

Note
Only supports Change objects that are derived from ChangeRow.
Parameters
Change$change
Exceptions
DBQueryError

Implements Wikibase\Lib\Changes\ChangeStore.

◆ updateChange()

Wikibase\Lib\Store\Sql\SqlChangeStore::updateChange ( ChangeRow  $change)
private

Member Data Documentation

◆ $loadBalancer

Wikibase\Lib\Store\Sql\SqlChangeStore::$loadBalancer
private

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