MediaWiki REL1_40
|
Represents the identity of a specific rendering of a specific revision at some point in time. More...
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) |
Represents the identity of a specific rendering of a specific revision at some point in time.
Definition at line 14 of file ParsoidRenderID.php.
MediaWiki\Parser\Parsoid\ParsoidRenderID::__construct | ( | int | $revisionID, |
string | $uniqueID ) |
int | $revisionID | Revision that was rendered |
string | $uniqueID | An identifier for a point in time. |
Definition at line 29 of file ParsoidRenderID.php.
MediaWiki\Parser\Parsoid\ParsoidRenderID::__toString | ( | ) |
Definition at line 88 of file ParsoidRenderID.php.
MediaWiki\Parser\Parsoid\ParsoidRenderID::getKey | ( | ) |
This returns the canonical string representation from the parsoid render ID which can be used to in newFromString().
Definition at line 84 of file ParsoidRenderID.php.
MediaWiki\Parser\Parsoid\ParsoidRenderID::getRevisionID | ( | ) |
Get the revision ID from the parsoid render ID object.
Definition at line 97 of file ParsoidRenderID.php.
MediaWiki\Parser\Parsoid\ParsoidRenderID::getUniqueID | ( | ) |
Get the unique identifier from the parsoid render ID object.
Definition at line 106 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 68 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 43 of file ParsoidRenderID.php.