Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Changes\ItemChange Class Reference
+ Inheritance diagram for Wikibase\Lib\Changes\ItemChange:
+ Collaboration diagram for Wikibase\Lib\Changes\ItemChange:

Public Member Functions

 getSiteLinkDiff ()
 
- Public Member Functions inherited from Wikibase\Lib\Changes\EntityChange
 getType ()
 Returns the type of change.
 
 getEntityId ()
 
 setEntityId (EntityId $entityId)
 Set the Change's entity id (as returned by getEntityId) and the object_id field.
 
 getAction ()
 
 getMetadata (string $cache='no')
 
 setMetadata (array $metadata)
 Sets metadata fields.
 
 getComment ()
 
 addUserMetadata (int $repoUserId, string $repoUserText, int $centralUserId)
 Add fields and metadata related to the user.
 
 setTimestamp (string $timestamp)
 
 getSerializedInfo ( $skipKeys=[])
 
- Public Member Functions inherited from Wikibase\Lib\Changes\DiffChange
 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.
 
 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.
 

Private Member Functions

 getDiffFromSiteLinkChanges (array $siteLinkChanges)
 
 getDiffFromSiteLinkChangesPerWiki (array $change)
 
 logWarning ( $obj)
 

Additional Inherited Members

- Public Attributes inherited from Wikibase\Lib\Changes\EntityChange
const UPDATE = 'update'
 
const ADD = 'add'
 
const REMOVE = 'remove'
 
const RESTORE = 'restore'
 
- 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\EntityChange
 unserializeInfo ( $serialization)
 
- Protected Attributes inherited from Wikibase\Lib\Changes\ChangeRow
 $logger
 

Detailed Description

Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
Daniel Kinzler

Member Function Documentation

◆ getDiffFromSiteLinkChanges()

Wikibase\Lib\Changes\ItemChange::getDiffFromSiteLinkChanges ( array $siteLinkChanges)
private
Parameters
array[]$siteLinkChanges
Returns
Diff

◆ getDiffFromSiteLinkChangesPerWiki()

Wikibase\Lib\Changes\ItemChange::getDiffFromSiteLinkChangesPerWiki ( array $change)
private

◆ getSiteLinkDiff()

Wikibase\Lib\Changes\ItemChange::getSiteLinkDiff ( )

◆ logWarning()

Wikibase\Lib\Changes\ItemChange::logWarning ( $obj)
private

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