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 Returns false if the specified title is not a redirect, or if it is a circular redirect. | |
Public Attributes | |
$reason | |
$redirTitle | |
$destTitleText | |
Static Public Attributes | |
static | $user |
Definition at line 3 of file DoubleRedirectJob.php.
DoubleRedirectJob::__construct | ( | $ | title, | |
$ | params = false , |
|||
$ | id = 0 | |||
) |
Definition at line 44 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.
string | $type The reason for the fix, see message double-redirect-fixed-<reason> | |
Title | $redirTitle The title which has changed, redirects pointing to this title are fixed |
Definition at line 12 of file DoubleRedirectJob.php.
References $dbw, $reason, $redirTitle, $res, $row, Job::$title, Job::batchInsert(), Title::makeTitle(), and wfGetDB().
Referenced by MovePageForm::doSubmit().
static DoubleRedirectJob::getFinalDestination | ( | $ | title | ) | [static] |
Get the final destination of a redirect Returns false if the specified title is not a redirect, or if it is a circular redirect.
Definition at line 121 of file DoubleRedirectJob.php.
References $dbw, $dest, $row, 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 156 of file DoubleRedirectJob.php.
References $user, User::newFromName(), and wfMsgForContent().
Referenced by run().
DoubleRedirectJob::run | ( | ) |
Run the job.
Reimplemented from Job.
Definition at line 51 of file DoubleRedirectJob.php.
References $reason, $text, $wgUser, MagicWord::get(), getFinalDestination(), getUser(), Title::makeTitle(), Title::newFromRedirect(), Revision::newFromTitle(), Job::setLastError(), wfDebug(), and wfMsgForContent().
DoubleRedirectJob::$destTitleText |
Definition at line 4 of file DoubleRedirectJob.php.
DoubleRedirectJob::$reason |
DoubleRedirectJob::$redirTitle |
DoubleRedirectJob::$user [static] |
Definition at line 5 of file DoubleRedirectJob.php.