Wikibase
MediaWiki Wikibase extension
|
This class holds a very compact and simple representation of an Entity diff for propagating repo changes to clients (T113468). More...
Public Member Functions | |
__construct (array $labelChanges, array $descriptionChanges, array $statementChanges, array $siteLinkChanges, $otherChanges) | |
Note: If an entity doesn't have a certain aspect, just report that no changes happened (empty array). | |
getLabelChanges () | |
Language codes of the labels that changed (added, removed or updated) | |
getDescriptionChanges () | |
Language codes of the descriptions that changed (added, removed or updated) | |
getStatementChanges () | |
Property id serialization from the statements that changed (added, removed or updated) | |
getSiteLinkChanges () | |
Map of site ids to array of old value, new value and boolean value determining if badge has changed or not. | |
hasOtherChanges () | |
Do we have changes that are not covered more specifically? | |
serialize () | |
__serialize () | |
unserialize ( $serialized) | |
__unserialize (array $data) | |
toArray () | |
Public Attributes | |
const | ARRAYFORMATVERSION = 1 |
Increases whenever the array format (self::toArray) changes. | |
Private Attributes | |
$labelChanges | |
$descriptionChanges | |
$statementChanges | |
$siteLinkChanges | |
$otherChanges | |
This class holds a very compact and simple representation of an Entity diff for propagating repo changes to clients (T113468).
This can also be used for entity types which don't have all aspects mentioned here, the aspects are represented as unchanged in that case.
Wikibase\Lib\Changes\EntityDiffChangedAspects::__construct | ( | array | $labelChanges, |
array | $descriptionChanges, | ||
array | $statementChanges, | ||
array | $siteLinkChanges, | ||
$otherChanges ) |
Note: If an entity doesn't have a certain aspect, just report that no changes happened (empty array).
string[] | $labelChanges | Language codes of the labels that changed (added, removed or updated) |
string[] | $descriptionChanges | Language codes of the descriptions that changed (added, removed or updated) |
string[] | $statementChanges | Property id serialization from the statements that changed (added, removed or updated) |
array[] | $siteLinkChanges | Map of global site identifiers to [ string|null $oldPageName, string|null $newPageName, bool $badgesChanged ] |
bool | $otherChanges | Do we have changes that are not covered more specifically? |
Wikibase\Lib\Changes\EntityDiffChangedAspects::__serialize | ( | ) |
Wikibase\Lib\Changes\EntityDiffChangedAspects::__unserialize | ( | array | $data | ) |
Wikibase\Lib\Changes\EntityDiffChangedAspects::getDescriptionChanges | ( | ) |
Language codes of the descriptions that changed (added, removed or updated)
Wikibase\Lib\Changes\EntityDiffChangedAspects::getLabelChanges | ( | ) |
Language codes of the labels that changed (added, removed or updated)
Wikibase\Lib\Changes\EntityDiffChangedAspects::getSiteLinkChanges | ( | ) |
Map of site ids to array of old value, new value and boolean value determining if badge has changed or not.
Wikibase\Lib\Changes\EntityDiffChangedAspects::getStatementChanges | ( | ) |
Property id serialization from the statements that changed (added, removed or updated)
Wikibase\Lib\Changes\EntityDiffChangedAspects::hasOtherChanges | ( | ) |
Do we have changes that are not covered more specifically?
Wikibase\Lib\Changes\EntityDiffChangedAspects::serialize | ( | ) |
Wikibase\Lib\Changes\EntityDiffChangedAspects::toArray | ( | ) |
Wikibase\Lib\Changes\EntityDiffChangedAspects::unserialize | ( | $serialized | ) |
string | $serialized | JSON |
|
private |
|
private |
|
private |
|
private |
|
private |
const Wikibase\Lib\Changes\EntityDiffChangedAspects::ARRAYFORMATVERSION = 1 |
Increases whenever the array format (self::toArray) changes.