Method to enumerate all links that point to a given namespace.
object
enumerateLinks
([boolean $alcontinue = false], [string $alfrom = null], [string $alto = null], [string $alprefix = null], [string $alunique = null], [array $alprop = null], [string $alnamespace = null], [integer $allimit = null])
-
boolean
$alcontinue: When more results are available, use this to continue.
-
string
$alfrom: Start listing at this title. The title need not exist.
-
string
$alto: The page title to stop enumerating at.
-
string
$alprefix: Search for all page titles that begin with this value.
-
string
$alunique: Only show unique links.
-
array
$alprop: What pieces of information to include.
-
string
$alnamespace: The namespace to enumerate.
-
integer
$allimit: Number of links to return.
Method to return all external urls from the given page(s).
object
getExtLinks
(array $titles, [integer $ellimit = null], [string $eloffset = null], [string $elprotocol = null], [string $elquery = null])
-
array
$titles: Page titles to retrieve links.
-
integer
$ellimit: Number of links to return.
-
string
$eloffset: When more results are available, use this to continue.
-
string
$elprotocol: Protocol of the url.
-
string
$elquery: Search string without protocol.
Method to return all interwiki links from the given page(s).
object
getIWLinks
(array $titles, [boolean $iwurl = false], [integer $iwlimit = null], [boolean $iwcontinue = false], [string $iwprefix = null], [string $iwtitle = null], [string $iwdir = null])
-
array
$titles: Page titles to retrieve links.
-
boolean
$iwurl: Whether to get the full url.
-
integer
$iwlimit: Number of interwiki links to return.
-
boolean
$iwcontinue: When more results are available, use this to continue.
-
string
$iwprefix: Prefix for the interwiki.
-
string
$iwtitle: Interwiki link to search for.
-
string
$iwdir: The direction in which to list.
Method to return all interlanguage links from the given page(s).
object
getLangLinks
(array $titles, [integer $lllimit = null], [boolean $llcontinue = false], [string $llurl = null], [string $lllang = null], [string $lltitle = null], [string $lldir = null])
-
array
$titles: Page titles to retrieve links.
-
integer
$lllimit: Number of langauge links to return.
-
boolean
$llcontinue: When more results are available, use this to continue.
-
string
$llurl: Whether to get the full URL.
-
string
$lllang: Language code.
-
string
$lltitle: Link to search for.
-
string
$lldir: The direction in which to list.
Method to return all links from the given page(s).
object
getLinks
(array $titles, [array $plnamespace = null], [string $pllimit = null], [string $plcontinue = null], [array $pltitles = null], [string $pldir = null])
-
array
$titles: Page titles to retrieve links.
-
array
$plnamespace: Namespaces to get links.
-
string
$pllimit: Number of links to return.
-
string
$plcontinue: Continue when more results are available.
-
array
$pltitles: List links to these titles.
-
string
$pldir: Direction of listing.
Method to return info about the link pages.
object
getLinksUsed
(array $titles)
-
array
$titles: Page titles to retrieve links.
Inherited Methods
Inherited From JMediawikiObject
JMediawikiObject::__construct()
JMediawikiObject::buildParameter()
JMediawikiObject::fetchUrl()
JMediawikiObject::validateResponse()