Inherits Job.
Public Member Functions | |
__construct ($title, $params=false, $id=0) | |
run () | |
Run the job. | |
getUser () | |
Get a user object for doing edits, from a request-lifetime cache. | |
Static Public Member Functions | |
static | fixRedirects ($reason, $redirTitle, $destTitle=false) |
Insert jobs into the job queue to fix redirects to the given title. | |
static | getFinalDestination ($title) |
Get the final destination of a redirect. | |
Public Attributes | |
$reason | |
$redirTitle | |
$destTitleText | |
Static Public Attributes | |
static | $user |
Definition at line 8 of file DoubleRedirectJob.php.
DoubleRedirectJob::__construct | ( | $ | title, | |
$ | params = false , |
|||
$ | id = 0 | |||
) |
Definition at line 50 of file DoubleRedirectJob.php.
References Job::$id, Job::$params, Job::$title, and Title::newFromText().
static DoubleRedirectJob::fixRedirects | ( | $ | reason, | |
$ | redirTitle, | |||
$ | destTitle = false | |||
) | [static] |
Insert jobs into the job queue to fix redirects to the given title.
$reason | String: the reason for the fix, see message double-redirect-fixed-<reason> | |
$redirTitle | Title: the title which has changed, redirects pointing to this title are fixed | |
$destTitle | Not used |
Definition at line 18 of file DoubleRedirectJob.php.
References $dbw, $reason, $redirTitle, $res, Job::$title, Job::batchInsert(), Title::makeTitle(), and wfGetDB().
Referenced by MovePageForm::doSubmit().
static DoubleRedirectJob::getFinalDestination | ( | $ | title | ) | [static] |
Get the final destination of a redirect.
Definition at line 127 of file DoubleRedirectJob.php.
References $dbw, Job::$title, Title::makeTitle(), wfDebug(), and wfGetDB().
Referenced by run().
DoubleRedirectJob::getUser | ( | ) |
Get a user object for doing edits, from a request-lifetime cache.
Definition at line 162 of file DoubleRedirectJob.php.
References User::newFromName(), and wfMsgForContent().
Referenced by run().
DoubleRedirectJob::run | ( | ) |
Run the job.
Reimplemented from Job.
Definition at line 57 of file DoubleRedirectJob.php.
References $reason, $wgUser, MagicWord::get(), getFinalDestination(), getUser(), Title::makeTitle(), Title::newFromRedirect(), Revision::newFromTitle(), Job::setLastError(), wfDebug(), and wfMsgForContent().
DoubleRedirectJob::$destTitleText |
Definition at line 9 of file DoubleRedirectJob.php.
DoubleRedirectJob::$reason |
DoubleRedirectJob::$redirTitle |
DoubleRedirectJob::$user [static] |
Definition at line 10 of file DoubleRedirectJob.php.