35 parent::__construct( $name );
51 return $this->
msg(
'doubleredirectstext' )->parseAsBlock();
55 $limitToTitle = !( $namespace ===
null && $title === null );
65 'namespace' =>
'pa.page_namespace',
66 'title' =>
'pa.page_title',
68 'b_namespace' =>
'pb.page_namespace',
69 'b_title' =>
'pb.page_title',
73 'c_namespace' =>
'rb.rd_namespace',
74 'c_title' =>
'rb.rd_title',
75 'c_fragment' =>
'rb.rd_fragment',
76 'c_interwiki' =>
'rb.rd_interwiki',
79 'ra.rd_from = pa.page_id',
88 'ra.rd_interwiki IS NULL OR ra.rd_interwiki = ' .
$dbr->addQuotes(
'' ),
90 'pb.page_namespace = ra.rd_namespace',
91 'pb.page_title = ra.rd_title',
93 'rb.rd_from = pb.page_id',
97 if ( $limitToTitle ) {
98 $retval[
'conds'][
'pa.page_namespace'] = $namespace;
110 return [
'ra.rd_namespace',
'ra.rd_title' ];
126 if ( isset( $result->b_namespace ) ) {
142 $deep =
$dbr->fetchObject(
$res ) ?:
false;
147 $titleA = Title::makeTitle( $result->namespace, $result->title );
151 return '<del>' .
$linkRenderer->makeLink( $titleA,
null, [], [
'redirect' =>
'no' ] ) .
'</del>';
157 $this->
getUser()->isAllowed(
'edit' ) &&
159 ContentHandler::getForTitle( $titleA )->supportsDirectEditing()
163 $this->
msg(
'parentheses', $this->
msg(
'editlink' )->
text() )->
text(),
165 [
'action' =>
'edit' ]
175 [
'redirect' =>
'no' ]
178 $titleB = Title::makeTitle( $deep->b_namespace, $deep->b_title );
183 [
'redirect' =>
'no' ]
186 $titleC = Title::makeTitle(
192 $linkC =
$linkRenderer->makeKnownLink( $titleC, $titleC->getFullText() );
195 $arr =
$lang->getArrow() .
$lang->getDirMark();
197 return (
"{$linkA} {$edit} {$arr} {$linkB} {$arr} {$linkC}" );
207 if ( !
$res->numRows() ) {
212 foreach (
$res as $row ) {
213 $batch->
add( $row->namespace, $row->title );
214 if ( isset( $row->b_namespace ) ) {
216 $batch->add( $row->b_namespace, $row->b_title );
218 if ( isset( $row->c_interwiki ) && !$row->c_interwiki ) {
220 $batch->add( $row->c_namespace, $row->c_title );
230 return 'maintenance';
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
A special page listing redirects to redirecting page.
reallyGetQueryInfo( $namespace=null, $title=null)
isSyndicated()
Sometime we don't want to build rss / atom feeds.
formatResult( $skin, $result)
preprocessResults( $db, $res)
Cache page content model and gender distinction for performance.
sortDescending()
Override to sort by increasing values.
getPageHeader()
The content returned by this function will be output before any result.
__construct( $name='DoubleRedirects')
getOrderFields()
Subclasses return an array of fields to order by here.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
Class representing a list of titles The execute() method checks them all for existence and adds them ...
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
getUser()
Shortcut to get the User executing this instance.
msg( $key)
Wrapper around wfMessage that sets the current context.
getLanguage()
Shortcut to get user's language.
MediaWiki Linker LinkRenderer null $linkRenderer
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
namespace being checked & $result
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a local account incomplete not yet checked for validity & $retval
namespace and then decline to actually register it file or subcat img or subcat $title
if(!isset( $args[0])) $lang