◆ __construct()
Wikimedia\Parsoid\Utils\Title::__construct |
( |
string |
$key, |
|
|
|
$ns, |
|
|
SiteConfig |
$siteConfig, |
|
|
?string |
$fragment = null |
|
) |
| |
- Parameters
-
string | $key | Page DBkey (with underscores, not spaces) |
int | TitleNamespace | $ns | |
SiteConfig | $siteConfig | |
| ?string | $fragment |
◆ equals()
Wikimedia\Parsoid\Utils\Title::equals |
( |
Title |
$title | ) |
|
Compare with another title.
- Parameters
-
- Returns
- bool
◆ fixSpecialName()
static Wikimedia\Parsoid\Utils\Title::fixSpecialName |
( |
SiteConfig |
$siteConfig, |
|
|
string |
$title |
|
) |
| |
|
static |
Use the default special page alias.
- Parameters
-
SiteConfig | $siteConfig | |
string | $title | |
- Returns
- string
◆ getFragment()
Wikimedia\Parsoid\Utils\Title::getFragment |
( |
| ) |
|
Get the fragment, if any.
- Returns
- string|null
◆ getKey()
Wikimedia\Parsoid\Utils\Title::getKey |
( |
| ) |
|
Get the DBkey.
- Returns
- string
◆ getNamespace()
Wikimedia\Parsoid\Utils\Title::getNamespace |
( |
| ) |
|
◆ getNamespaceId()
Wikimedia\Parsoid\Utils\Title::getNamespaceId |
( |
| ) |
|
Get the namespace ID.
- Returns
- int
◆ getPrefixedDBKey()
Wikimedia\Parsoid\Utils\Title::getPrefixedDBKey |
( |
| ) |
|
Get the prefixed DBkey.
- Returns
- string
◆ getPrefixedText()
Wikimedia\Parsoid\Utils\Title::getPrefixedText |
( |
| ) |
|
Get the prefixed text.
- Returns
- string
◆ newFromText()
static Wikimedia\Parsoid\Utils\Title::newFromText |
( |
string |
$title, |
|
|
SiteConfig |
$siteConfig, |
|
|
|
$defaultNs = 0 |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: