MediaWiki REL1_39
|
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 12 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 27 of file ParsoidRenderID.php.
MediaWiki\Parser\Parsoid\ParsoidRenderID::__toString | ( | ) |
Definition at line 76 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 72 of file ParsoidRenderID.php.
MediaWiki\Parser\Parsoid\ParsoidRenderID::getRevisionID | ( | ) |
Get the revision ID from the parsoid render ID object.
Definition at line 85 of file ParsoidRenderID.php.
MediaWiki\Parser\Parsoid\ParsoidRenderID::getUniqueID | ( | ) |
Get the unique identifier from the parsoid render ID object.
Definition at line 94 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 61 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 41 of file ParsoidRenderID.php.