DoubleRedirectJob Class Reference

Inherits Job.

List of all members.

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


Detailed Description

Definition at line 3 of file DoubleRedirectJob.php.


Constructor & Destructor Documentation

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().


Member Function Documentation

static DoubleRedirectJob::fixRedirects ( reason,
redirTitle,
destTitle = false 
) [static]

Insert jobs into the job queue to fix redirects to the given title.

Parameters:
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 (  ) 


Member Data Documentation

DoubleRedirectJob::$destTitleText

Definition at line 4 of file DoubleRedirectJob.php.

DoubleRedirectJob::$reason

Definition at line 4 of file DoubleRedirectJob.php.

Referenced by fixRedirects(), and run().

DoubleRedirectJob::$redirTitle

Definition at line 4 of file DoubleRedirectJob.php.

Referenced by fixRedirects().

DoubleRedirectJob::$user [static]

Definition at line 5 of file DoubleRedirectJob.php.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:36 2009 for MediaWiki by  doxygen 1.5.9