Wikibase
MediaWiki Wikibase extension
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)
 
 getEntityIdSerialization ()
 Serialization of the entity id changed. More...
 
 getRevisionTimestamp ()
 MediaWiki style timestamp of the revision. More...
 
 getRevisionId ()
 
 serialize ()
 
 __serialize ()
 
 unserialize ( $serialized)
 
 __unserialize (array $data)
 
 toArray ()
 

Public Attributes

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

Private Attributes

 $entityIdSerialization
 
 $revisionTimestamp
 
 $revisionId
 

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, and its id.

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ __serialize()

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

◆ __unserialize()

Wikibase\Lib\Changes\RepoRevisionIdentifier::__unserialize ( array  $data)

◆ getEntityIdSerialization()

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

Serialization of the entity id changed.

Returns
string

◆ getRevisionId()

Wikibase\Lib\Changes\RepoRevisionIdentifier::getRevisionId ( )
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
Exception

Member Data Documentation

◆ $entityIdSerialization

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

◆ $revisionId

Wikibase\Lib\Changes\RepoRevisionIdentifier::$revisionId
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: