MediaWiki master
|
Represents the identity of a specific rendering of a specific revision at some point in time. More...
Inherits Stringable.
Public Member Functions | |
__construct (int $revisionID, string $uniqueID) | |
__toString () | |
getKey () | |
This returns the canonical string representation from the parsoid render ID which can be used to in newFromString(). | |
getRevisionID () | |
Get the revision ID from the parsoid render ID object. | |
getUniqueID () | |
Get the unique identifier from the parsoid render ID object. | |
Static Public Member Functions | |
static | newFromETag (string $eTag) |
This constructs a new render ID from the given ETag. | |
static | newFromKey (string $key) |
static | newFromParserOutput (ParserOutput $parserOutput) |
Create a ParsoidRenderID from the revision and render id stored in a ParserOutput. | |
Represents the identity of a specific rendering of a specific revision at some point in time.
Definition at line 16 of file ParsoidRenderID.php.
MediaWiki\Edit\ParsoidRenderID::__construct | ( | int | $revisionID, |
string | $uniqueID ) |
int | $revisionID | Revision that was rendered |
string | $uniqueID | An identifier for a point in time. |
Definition at line 25 of file ParsoidRenderID.php.
MediaWiki\Edit\ParsoidRenderID::__toString | ( | ) |
Definition at line 101 of file ParsoidRenderID.php.
MediaWiki\Edit\ParsoidRenderID::getKey | ( | ) |
This returns the canonical string representation from the parsoid render ID which can be used to in newFromString().
Definition at line 97 of file ParsoidRenderID.php.
MediaWiki\Edit\ParsoidRenderID::getRevisionID | ( | ) |
Get the revision ID from the parsoid render ID object.
Definition at line 110 of file ParsoidRenderID.php.
MediaWiki\Edit\ParsoidRenderID::getUniqueID | ( | ) |
Get the unique identifier from the parsoid render ID object.
Definition at line 119 of file ParsoidRenderID.php.
|
static |
This constructs a new render ID from the given ETag.
Any suffix after a second forward slash will be ignored e.g. ->newFromEtag( '1/abc/stash' ) will return '1/abc' when ->getKey() is called on the ParsoidRenderID object instance.
string | $eTag | ETag with double quotes, see https://www.rfc-editor.org/rfc/rfc7232#section-2.3 |
Definition at line 81 of file ParsoidRenderID.php.
|
static |
string | $key | String representation of render ID (synonymous with an etag with double quotes) as returned by ::getKey(). |
Definition at line 39 of file ParsoidRenderID.php.
|
static |
Create a ParsoidRenderID from the revision and render id stored in a ParserOutput.
ParserOutput | $parserOutput |
Definition at line 55 of file ParsoidRenderID.php.