MediaWiki  REL1_23
SpecialRunJobs Class Reference

Special page designed for running background tasks (internal use only) More...

Inheritance diagram for SpecialRunJobs:
Collaboration diagram for SpecialRunJobs:

List of all members.

Public Member Functions

 __construct ()
 execute ($par= '')
 Default execute method Checks user permissions, calls the function given in mFunction.

Static Public Member Functions

static executeJobs ($maxJobs)
 Run jobs from the job queue.
static getQuerySignature (array $query)

Detailed Description

Special page designed for running background tasks (internal use only)

Definition at line 30 of file SpecialRunJobs.php.


Constructor & Destructor Documentation

Definition at line 31 of file SpecialRunJobs.php.


Member Function Documentation

SpecialRunJobs::execute ( subPage = '')

Default execute method Checks user permissions, calls the function given in mFunction.

This must be overridden by subclasses; it will be made abstract in a future version

Parameters:
string | null$subPage

Reimplemented from SpecialPage.

Definition at line 35 of file SpecialRunJobs.php.

References $params, $result, array(), executeJobs(), SpecialPage\getOutput(), getQuerySignature(), SpecialPage\getRequest(), print, and wfReadOnly().

static SpecialRunJobs::executeJobs ( maxJobs) [static]

Run jobs from the job queue.

Note:
: also called from Wiki.php
Parameters:
integer$maxJobsMaximum number of jobs to run
Returns:
void

Definition at line 123 of file SpecialRunJobs.php.

References $count, $e, $job, $n, $output, $success, $t, MWExceptionHandler\logException(), MWExceptionHandler\rollbackMasterChangesAndLog(), JobQueueGroup\singleton(), JobQueueGroup\TYPE_DEFAULT, JobQueueGroup\USE_CACHE, wfDebugLog(), wfProfileIn(), and wfProfileOut().

Referenced by execute().

static SpecialRunJobs::getQuerySignature ( array query) [static]
Parameters:
array$query
Returns:
string

Definition at line 108 of file SpecialRunJobs.php.

References global, and wfArrayToCgi().

Referenced by execute().


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