Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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.
 
 getObjectId ()
 
 getField ( $name)
 
 getFields ()
 Overwritten to unserialize the info field on the fly.
 
 getInfo ( $cache='no')
 Returns the info array.
 
 getSerializedInfo ( $skipKeys=[])
 
 setField ( $name, $value)
 Sets the value of a field.
 
 setFields (array $fields)
 Sets multiple fields.
 
 getId ()
 
 hasField ( $name)
 Gets if a certain field is set.
 
- Public Member Functions inherited from Wikibase\Lib\Changes\Change
 getType ()
 Returns the type of change.
 

Additional Inherited Members

- Public Attributes inherited from Wikibase\Lib\Changes\ChangeRow
const ID = 'id'
 
const METADATA = 'metadata'
 
const INFO = 'info'
 
const TIME = 'time'
 
const USER_ID = 'user_id'
 
const OBJECT_ID = 'object_id'
 
const COMPACT_DIFF = 'compactDiff'
 
const TYPE = 'type'
 
const REVISION_ID = 'revision_id'
 
- Protected Member Functions inherited from Wikibase\Lib\Changes\ChangeRow
 unserializeInfo ( $str)
 Unserializes the info field using json_decode.
 
- 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 ( )
Returns
EntityDiffChangedAspects

◆ setCompactDiff()

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

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