Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Changes\DiffChange Class Reference

Class for changes that can be represented as a Diff. More...

+ Inheritance diagram for Wikibase\Lib\Changes\DiffChange:
+ Collaboration diagram for Wikibase\Lib\Changes\DiffChange:

Public Member Functions

 getCompactDiff ()
 
 setCompactDiff (EntityDiffChangedAspects $diff)
 
- Public Member Functions inherited from Wikibase\Lib\Changes\ChangeRow
 __construct (array $fields=[])
 
 setLogger (LoggerInterface $logger)
 
 getAge ()
 
 getTime ()
 
 getUserId ()
 Original (repository) user id, or 0 for logged out users. More...
 
 getObjectId ()
 
 getField ( $name)
 
 getFields ()
 Overwritten to unserialize the info field on the fly. More...
 
 getInfo ( $cache='no')
 Returns the info array. More...
 
 getSerializedInfo ( $skipKeys=[])
 
 setField ( $name, $value)
 Sets the value of a field. More...
 
 setFields (array $fields)
 Sets multiple fields. More...
 
 getId ()
 
 hasField ( $name)
 Gets if a certain field is set. More...
 
- Public Member Functions inherited from Wikibase\Lib\Changes\Change
 getType ()
 Returns the type of change. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Wikibase\Lib\Changes\ChangeRow
 unserializeInfo ( $str)
 Unserializes the info field using json_decode. More...
 
- Protected Attributes inherited from Wikibase\Lib\Changes\ChangeRow
 $logger
 

Detailed Description

Class for changes that can be represented as a Diff.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Daniel Kinzler

Member Function Documentation

◆ getCompactDiff()

Wikibase\Lib\Changes\DiffChange::getCompactDiff ( )

◆ setCompactDiff()

Wikibase\Lib\Changes\DiffChange::setCompactDiff ( EntityDiffChangedAspects  $diff)

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