Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Content\DataUpdateAdapter Class Reference

A generic DataUpdate based on a callable passed to the constructor. More...

+ Inheritance diagram for Wikibase\Repo\Content\DataUpdateAdapter:
+ Collaboration diagram for Wikibase\Repo\Content\DataUpdateAdapter:

Public Member Functions

 __construct (callable $doUpdateFunction,... $args)
 
 setExceptionHandler (ExceptionHandler $exceptionHandler)
 
 doUpdate ()
 Calls the function specified in the constructor with any additional arguments passed to the constructor.
 

Private Attributes

 $doUpdateFunction
 
 $arguments
 
 $exceptionHandler
 

Detailed Description

A generic DataUpdate based on a callable passed to the constructor.

Together with any additional parameters provided to the constructor an instance of this methods constitutes a closure for a call to the callable.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Content\DataUpdateAdapter::__construct ( callable $doUpdateFunction,
$args )
Parameters
callable$doUpdateFunction
mixed...$args
Exceptions
InvalidArgumentException

Member Function Documentation

◆ doUpdate()

Wikibase\Repo\Content\DataUpdateAdapter::doUpdate ( )

Calls the function specified in the constructor with any additional arguments passed to the constructor.

◆ setExceptionHandler()

Wikibase\Repo\Content\DataUpdateAdapter::setExceptionHandler ( ExceptionHandler $exceptionHandler)

Member Data Documentation

◆ $arguments

Wikibase\Repo\Content\DataUpdateAdapter::$arguments
private

◆ $doUpdateFunction

Wikibase\Repo\Content\DataUpdateAdapter::$doUpdateFunction
private

◆ $exceptionHandler

Wikibase\Repo\Content\DataUpdateAdapter::$exceptionHandler
private

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