MediaWiki REL1_35
MediaWiki\Rest\Entity\SearchResultPageIdentity Interface Reference

Lightweight interface representing a page identity. More...

Inheritance diagram for MediaWiki\Rest\Entity\SearchResultPageIdentity:

Public Member Functions

 getDBkey ()
 Get the page title in DB key form.
 
 getId ()
 The numerical page ID.
 
 getNamespace ()
 Returns the page's namespace number.
 

Detailed Description

Lightweight interface representing a page identity.

@unstable

Note
This interface is temorary solution. It will be replaced by the one from: https://phabricator.wikimedia.org/T208776

Definition at line 11 of file SearchResultPageIdentity.php.

Member Function Documentation

◆ getDBkey()

MediaWiki\Rest\Entity\SearchResultPageIdentity::getDBkey ( )

Get the page title in DB key form.

At the moment it is equivalent to Title::getDBkey()

See also
Title::getDBkey()
Returns
string

Implemented in MediaWiki\Rest\Entity\SearchResultPageIdentityValue.

◆ getId()

MediaWiki\Rest\Entity\SearchResultPageIdentity::getId ( )

The numerical page ID.

At the moment it is equivalent to Title::getArticleID()

See also
Title::getArticleID()
Returns
int

Implemented in MediaWiki\Rest\Entity\SearchResultPageIdentityValue.

◆ getNamespace()

MediaWiki\Rest\Entity\SearchResultPageIdentity::getNamespace ( )

Returns the page's namespace number.

At the moment it is equivalent to Title::getNamespace()

See also
Title::getNamespace()
Returns
int

Implemented in MediaWiki\Rest\Entity\SearchResultPageIdentityValue.


The documentation for this interface was generated from the following file: