[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/jobqueue/jobs/ -> DoubleRedirectJob.php (summary)

Job to fix double redirects after moving a page. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 250 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

DoubleRedirectJob:: (5 methods):
  fixRedirects()
  __construct()
  run()
  getFinalDestination()
  getUser()


Class: DoubleRedirectJob  - X-Ref

Job to fix double redirects after moving a page

fixRedirects( $reason, $redirTitle, $destTitle = false )   X-Ref
Insert jobs into the job queue to fix redirects to the given title

param: string $reason The reason for the fix, see message
param: Title $redirTitle The title which has changed, redirects
param: bool $destTitle Not used

__construct( $title, $params = false )   X-Ref

param: Title $title
param: array|bool $params

run()   X-Ref

return: bool

getFinalDestination( $title )   X-Ref
Get the final destination of a redirect

param: Title $title
return: bool If the specified title is not a redirect, or if it is a circular redirect

getUser()   X-Ref
Get a user object for doing edits, from a request-lifetime cache
False will be returned if the user name specified in the
'double-redirect-fixer' message is invalid.

return: User|bool



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1