BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
DoubleRedirectJob Class Reference
Inheritance diagram for DoubleRedirectJob:
Collaboration diagram for DoubleRedirectJob:

Public Member Functions

 __construct (Title $title, array $params)
 
 run ()
 
 getUser ()
 
- Public Member Functions inherited from Job
 run ()
 
 __construct ($command, $title, $params=false)
 
 getType ()
 
 getTitle ()
 
 getParams ()
 
 getReleaseTimestamp ()
 
 getQueuedTimestamp ()
 
 getRequestId ()
 
 getReadyTimestamp ()
 
 ignoreDuplicates ()
 
 allowRetries ()
 
 workItemCount ()
 
 getDeduplicationInfo ()
 
 getRootJobParams ()
 
 hasRootJobParams ()
 
 isRootJob ()
 
 teardown ()
 
 insert ()
 
 toString ()
 
 getLastError ()
 

Static Public Member Functions

static fixRedirects ($reason, $redirTitle, $destTitle=false)
 
static getFinalDestination ($title)
 
- Static Public Member Functions inherited from Job
static factory ($command, Title $title, $params=[])
 
static batchInsert ($jobs)
 
static newRootJobParams ($key)
 

Additional Inherited Members

- Public Attributes inherited from Job
 $command
 
 $params
 
 $metadata = []
 
- Protected Member Functions inherited from Job
 addTeardownCallback ($callback)
 
 setLastError ($error)
 
- Protected Attributes inherited from Job
 $title
 
 $removeDuplicates
 
 $error
 
 $teardownCallbacks = []
 

Detailed Description

Job to fix double redirects after moving a page

Constructor & Destructor Documentation

DoubleRedirectJob::__construct ( Title  $title,
array  $params 
)
Parameters
Title$title
array$params

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$reasonThe reason for the fix, see message "double-redirect-fixed-<reason>"
Title$redirTitleThe title which has changed, redirects pointing to this title are fixed
bool$destTitleNot used
static DoubleRedirectJob::getFinalDestination (   $title)
static

Get the final destination of a redirect

Parameters
Title$title
Returns
bool If the specified title is not a redirect, or if it is a circular redirect
DoubleRedirectJob::getUser ( )

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.

Returns
User|bool
DoubleRedirectJob::run ( )
Returns
bool

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