MediaWiki REL1_35
|
Lightweight value class representing a page identity. More...
Public Member Functions | |
__construct (int $id, int $namespace, string $dbKey) | |
getDBkey () | |
Get the page title in DB key form. | |
getId () | |
The numerical page ID. | |
getNamespace () | |
Returns the page's namespace number. | |
Private Attributes | |
string | $dbKey = '' |
int | $id = 0 |
int | $namespace = null |
Lightweight value class representing a page identity.
@unstable
Definition at line 11 of file SearchResultPageIdentityValue.php.
MediaWiki\Rest\Entity\SearchResultPageIdentityValue::__construct | ( | int | $id, |
int | $namespace, | ||
string | $dbKey | ||
) |
Definition at line 28 of file SearchResultPageIdentityValue.php.
References MediaWiki\Rest\Entity\SearchResultPageIdentityValue\$dbKey, and MediaWiki\Rest\Entity\SearchResultPageIdentityValue\$id.
MediaWiki\Rest\Entity\SearchResultPageIdentityValue::getDBkey | ( | ) |
Get the page title in DB key form.
At the moment it is equivalent to Title::getDBkey()
Implements MediaWiki\Rest\Entity\SearchResultPageIdentity.
Definition at line 42 of file SearchResultPageIdentityValue.php.
MediaWiki\Rest\Entity\SearchResultPageIdentityValue::getId | ( | ) |
The numerical page ID.
At the moment it is equivalent to Title::getArticleID()
Implements MediaWiki\Rest\Entity\SearchResultPageIdentity.
Definition at line 34 of file SearchResultPageIdentityValue.php.
MediaWiki\Rest\Entity\SearchResultPageIdentityValue::getNamespace | ( | ) |
Returns the page's namespace number.
At the moment it is equivalent to Title::getNamespace()
Implements MediaWiki\Rest\Entity\SearchResultPageIdentity.
Definition at line 38 of file SearchResultPageIdentityValue.php.
|
private |
Definition at line 21 of file SearchResultPageIdentityValue.php.
Referenced by MediaWiki\Rest\Entity\SearchResultPageIdentityValue\__construct().
|
private |
Definition at line 16 of file SearchResultPageIdentityValue.php.
Referenced by MediaWiki\Rest\Entity\SearchResultPageIdentityValue\__construct().
|
private |
Definition at line 26 of file SearchResultPageIdentityValue.php.