Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\ChangeOp\ChangeOps Class Reference

Class for holding a batch of change operations. More...

+ Inheritance diagram for Wikibase\Repo\ChangeOp\ChangeOps:
+ Collaboration diagram for Wikibase\Repo\ChangeOp\ChangeOps:

Public Member Functions

 __construct ( $changeOps=[])
 
 add ( $changeOps)
 Adds one change operation or a list of change operations. More...
 
 getChangeOps ()
 Get the array of change operations. More...
 
 apply (EntityDocument $entity, Summary $summary=null)
 
 validate (EntityDocument $entity)
 
 getActions ()
 

Private Attributes

 $changeOps = []
 

Detailed Description

Class for holding a batch of change operations.

Author
Tobias Gritschacher < tobia.nosp@m.s.gr.nosp@m.itsch.nosp@m.ache.nosp@m.r@wik.nosp@m.imed.nosp@m.ia.de >
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\ChangeOps::__construct (   $changeOps = [])
Parameters
ChangeOp | ChangeOp[]$changeOps
Exceptions
InvalidArgumentException

Member Function Documentation

◆ add()

Wikibase\Repo\ChangeOp\ChangeOps::add (   $changeOps)

Adds one change operation or a list of change operations.

Parameters
ChangeOp | ChangeOp[]$changeOps
Exceptions
InvalidArgumentException

Reimplemented in Wikibase\Repo\ChangeOp\ChangeOpFingerprint.

◆ apply()

Wikibase\Repo\ChangeOp\ChangeOps::apply ( EntityDocument  $entity,
Summary  $summary = null 
)
See also
ChangeOp::apply() Applies all changes to the given entity
Parameters
EntityDocument$entity
Summary | null$summary
Exceptions
ChangeOpException

Implements Wikibase\Repo\ChangeOp\ChangeOp.

Reimplemented in Wikibase\Repo\ChangeOp\ChangeOpFingerprint.

◆ getActions()

Wikibase\Repo\ChangeOp\ChangeOps::getActions ( )

◆ getChangeOps()

Wikibase\Repo\ChangeOp\ChangeOps::getChangeOps ( )

Get the array of change operations.

Returns
ChangeOp[]

Reimplemented in Wikibase\Repo\ChangeOp\ChangeOpFingerprint.

◆ validate()

Wikibase\Repo\ChangeOp\ChangeOps::validate ( EntityDocument  $entity)
See also
ChangeOp::validate()
Parameters
EntityDocument$entity
Exceptions
ChangeOpException
Returns
Result

Implements Wikibase\Repo\ChangeOp\ChangeOp.

Reimplemented in Wikibase\Repo\ChangeOp\ChangeOpFingerprint.

Member Data Documentation

◆ $changeOps

Wikibase\Repo\ChangeOp\ChangeOps::$changeOps = []
private

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