Translates api sitematrix results json into an array of Site objects.
More...
Translates api sitematrix results json into an array of Site objects.
- Copyright
- GPL-2.0-or-later
- Author
- Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
◆ __construct()
Wikibase\Lib\Sites\SiteMatrixParser::__construct |
( |
|
$scriptPath, |
|
|
|
$articlePath, |
|
|
|
$protocol, |
|
|
|
$expandGroup = true |
|
) |
| |
- Parameters
-
string | $scriptPath | (e.g. '/w/$1') |
string | $articlePath | (e.g. '/wiki/$1') |
string | bool | $protocol | (true: default, false: strip, string: protocol to force) |
boolean | $expandGroup | expands site matrix group codes from wiki to wikipedia |
◆ getSiteFromSiteData()
Wikibase\Lib\Sites\SiteMatrixParser::getSiteFromSiteData |
( |
array |
$siteData | ) |
|
|
private |
◆ getSitesFromLangGroup()
Wikibase\Lib\Sites\SiteMatrixParser::getSitesFromLangGroup |
( |
array |
$langGroup | ) |
|
|
private |
Gets an array of Site objects for all sites of the same language subdomain grouping used in the site matrix.
- Parameters
-
- Returns
- Site[]
◆ getSpecialSites()
Wikibase\Lib\Sites\SiteMatrixParser::getSpecialSites |
( |
array |
$specialSites | ) |
|
|
private |
◆ sitesFromJson()
Wikibase\Lib\Sites\SiteMatrixParser::sitesFromJson |
( |
|
$json | ) |
|
- Parameters
-
- Exceptions
-
- Returns
- Site[]
◆ $articlePath
Wikibase\Lib\Sites\SiteMatrixParser::$articlePath |
|
private |
◆ $expandGroup
Wikibase\Lib\Sites\SiteMatrixParser::$expandGroup |
|
private |
◆ $protocol
Wikibase\Lib\Sites\SiteMatrixParser::$protocol |
|
private |
◆ $scriptPath
Wikibase\Lib\Sites\SiteMatrixParser::$scriptPath |
|
private |
The documentation for this class was generated from the following file: