Go to the documentation of this file.
35 parent::__construct(
$query, $moduleName,
'el' );
39 if ( $this->
getPageSet()->getGoodTitleCount() == 0 ) {
58 if ( $whereQuery !==
null ) {
63 if ( count( $this->
getPageSet()->getGoodTitles() ) != 1 ) {
64 $this->
addOption(
'ORDER BY',
'el_from' );
68 if ( $protocol ===
null ) {
124 'expandurl' =>
false,
132 'limit' =>
'How many links to return',
133 'offset' =>
'When more results are available, use this to continue',
135 "Protocol of the URL. If empty and {$p}query set, the protocol is http.",
136 "Leave both this and {$p}query empty to list all external links"
138 'query' =>
'Search string without protocol. Useful for checking ' .
139 'whether a certain page contains a certain external url',
140 'expandurl' =>
'Expand protocol-relative URLs with the canonical protocol',
153 return 'Returns all external URLs (not interwikis) from the given page(s).';
157 return array_merge( parent::getPossibleErrors(),
array(
158 array(
'code' =>
'bad_query',
'info' =>
'Invalid query' ),
164 'api.php?action=query&prop=extlinks&titles=Main%20Page'
165 =>
'Get a list of external links on the [[Main Page]]',
170 return 'https://www.mediawiki.org/wiki/API:Properties#extlinks_.2F_el';
getExamples()
Returns usage examples for this module.
addFields( $value)
Add a set of fields to select to the internal array.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
static setContent(&$arr, $value, $subElemName=null)
Adds a content element to an array.
getCacheMode( $params)
Get the cache mode for the data generated by this module.
select( $method, $extraQuery=array())
Execute a SELECT query based on the values in the internal arrays.
getParamDescription()
Returns an array of parameter descriptions.
addOption( $name, $value=null)
Add an option such as LIMIT or USE INDEX.
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
static prepareProtocols()
getDescription()
Returns the description string for this module.
This is a base class for all Query modules.
addTables( $tables, $alias=null)
Add a set of tables to the internal array.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
getModulePrefix()
Get parameter prefix (usually two letters or an empty string).
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
addWhereFld( $field, $value)
Equivalent to addWhere(array($field => $value))
getPageSet()
Get the PageSet object to work on.
A query module to list all external URLs found on a given set of pages.
getResultProperties()
Returns possible properties in the result, grouped by the value of the prop parameter that shows them...
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
addWhere( $value)
Add a set of WHERE clauses to the internal array.
setContinueEnumParameter( $paramName, $paramValue)
Set a query-continue value.
return true to allow those checks to and false if checking is done use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped add a value to it if you want to add a cookie that have to vary cache options can modify $query
prepareUrlQuerySearchString( $query=null, $protocol=null)
addPageSubItem( $pageId, $item, $elemname=null)
Same as addPageSubItems(), but one element of $data at a time.
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
__construct( $query, $moduleName)
static getProtocolPrefix( $protocol)