Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Changes\RepoRevisionIdentifier Class Reference

Class identifying a repo change so that relevant entries can be easily found in a client's recentchanges table. More...

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

Public Member Functions

 __construct (string $entityIdSerialization, string $revisionTimestamp, int $revisionId, int $revisionParentId)
 
 getEntityIdSerialization ()
 Serialization of the entity id changed.
 
 getRevisionTimestamp ()
 MediaWiki style timestamp of the revision.
 
 getRevisionId ()
 
 getRevisionParentId ()
 
 serialize ()
 
 unserialize ( $serialized)
 
 toArray ()
 

Public Attributes

const ARRAYFORMATVERSION = 1
 Increases whenever the array format (self::toArray) changes.
 

Private Attributes

 $entityIdSerialization
 
 $revisionTimestamp
 
 $revisionId
 
 $revisionParentId
 

Detailed Description

Class identifying a repo change so that relevant entries can be easily found in a client's recentchanges table.

Contains the entity id changed, the revision's timestamp, id, and its parent ids.

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Changes\RepoRevisionIdentifier::__construct ( string  $entityIdSerialization,
string  $revisionTimestamp,
int  $revisionId,
int  $revisionParentId 
)

Member Function Documentation

◆ getEntityIdSerialization()

Wikibase\Lib\Changes\RepoRevisionIdentifier::getEntityIdSerialization ( )

Serialization of the entity id changed.

Returns
string

◆ getRevisionId()

Wikibase\Lib\Changes\RepoRevisionIdentifier::getRevisionId ( )
Returns
int

◆ getRevisionParentId()

Wikibase\Lib\Changes\RepoRevisionIdentifier::getRevisionParentId ( )
Returns
int

◆ getRevisionTimestamp()

Wikibase\Lib\Changes\RepoRevisionIdentifier::getRevisionTimestamp ( )

MediaWiki style timestamp of the revision.

Returns
string

◆ serialize()

Wikibase\Lib\Changes\RepoRevisionIdentifier::serialize ( )
See also
Serializable::serialize
Returns
string JSON

◆ toArray()

Wikibase\Lib\Changes\RepoRevisionIdentifier::toArray ( )
Returns
array

◆ unserialize()

Wikibase\Lib\Changes\RepoRevisionIdentifier::unserialize (   $serialized)
See also
Serializable::unserialize
Parameters
string$serializedJSON
Exceptions
MWException

Member Data Documentation

◆ $entityIdSerialization

Wikibase\Lib\Changes\RepoRevisionIdentifier::$entityIdSerialization
private

◆ $revisionId

Wikibase\Lib\Changes\RepoRevisionIdentifier::$revisionId
private

◆ $revisionParentId

Wikibase\Lib\Changes\RepoRevisionIdentifier::$revisionParentId
private

◆ $revisionTimestamp

Wikibase\Lib\Changes\RepoRevisionIdentifier::$revisionTimestamp
private

◆ ARRAYFORMATVERSION

const Wikibase\Lib\Changes\RepoRevisionIdentifier::ARRAYFORMATVERSION = 1

Increases whenever the array format (self::toArray) changes.


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