Go to the documentation of this file.
58 abstract public function run();
75 if ( isset( $wgJobClasses[
$command] ) ) {
80 throw new MWException(
"Invalid job command `{$command}`" );
133 public static function pop() {
152 $this->removeDuplicates =
false;
181 return isset( $this->params[
'jobReleaseTimestamp'] )
222 'namespace' => $this->
getTitle()->getNamespace(),
223 'title' => $this->
getTitle()->getDBkey(),
226 if ( is_array( $info[
'params'] ) ) {
228 unset( $info[
'params'][
'rootJobSignature'] );
229 unset( $info[
'params'][
'rootJobTimestamp'] );
231 unset( $info[
'params'][
'jobReleaseTimestamp'] );
247 'rootJobSignature' => sha1( $key ),
259 'rootJobSignature' => isset( $this->params[
'rootJobSignature'] )
260 ? $this->params[
'rootJobSignature']
262 'rootJobTimestamp' => isset( $this->params[
'rootJobTimestamp'] )
263 ? $this->params[
'rootJobTimestamp']
274 return isset( $this->params[
'rootJobSignature'] )
275 && isset( $this->params[
'rootJobTimestamp'] );
283 public function insert() {
292 if ( $this->params ) {
293 foreach ( $this->params
as $key =>
$value ) {
294 if ( $paramString !=
'' ) {
297 if ( is_array(
$value ) ) {
299 } elseif ( is_object(
$value ) && !method_exists(
$value,
'__toString' ) ) {
303 if ( mb_strlen(
$value ) > 1024 ) {
307 $paramString .=
"$key=$value";
311 if ( is_object( $this->
title ) ) {
312 $s =
"{$this->command} " . $this->
title->getPrefixedDBkey();
313 if ( $paramString !==
'' ) {
314 $s .=
' ' . $paramString;
319 return "{$this->command} $paramString";
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
static pop_type( $type)
Pop a job of a certain type.
Class to both describe a background job and handle jobs.
string $error
Text for error that occurred last *.
wfTimestampOrNull( $outputtype=TS_UNIX, $ts=null)
Return a formatted timestamp, or null if input is null.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
array $metadata
Additional queue metadata *.
when a variable name is used in a it is silently declared as a new masking the global
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
static newRootJobParams( $key)
array bool $params
Array of job parameters or false if none *.
static batchInsert( $jobs)
Batch-insert a group of jobs into the queue.
static factory( $command, Title $title, $params=false)
Create the appropriate object to handle a specific job.
bool $removeDuplicates
Expensive jobs may set this to true *.
getDeduplicationInfo()
Subclasses may need to override this to make duplication detection work.
static safeBatchInsert( $jobs)
Insert a group of jobs into the queue.
Represents a title within MediaWiki.
const TS_UNIX
Unix time - the number of seconds since 1970-01-01 00:00:00 UTC.
static singleton( $wiki=false)
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
__construct( $command, $title, $params=false)
insert()
Insert a single job into the queue.
Job queue task description interface.
static pop()
Pop a job off the front of the queue.