Go to the documentation of this file.
39 $this->removeDuplicates = ( !isset(
$params[
'range'] ) && !isset(
$params[
'pages'] ) );
43 global $wgUpdateRowsPerJob, $wgUpdateRowsPerQuery;
45 static $expected =
array(
'recursive',
'pages' );
48 if ( !array_intersect( array_keys( $this->params ), $expected ) ) {
51 if ( isset( $this->params[
'start'] ) && isset( $this->params[
'end'] ) ) {
54 $this->params[
'recursive'] =
true;
59 if ( !empty( $this->params[
'recursive'] ) ) {
65 $wgUpdateRowsPerQuery,
71 } elseif ( isset( $this->params[
'pages'] ) ) {
74 } elseif ( $oldRangeJob ) {
75 $titleArray = $this->
title->getBacklinkCache()->getLinks(
76 $this->params[
'table'], $this->params[
'start'], $this->params[
'end'] );
79 foreach ( $titleArray
as $tl ) {
80 $pages[$tl->getArticleId()] =
array( $tl->getNamespace(), $tl->getDbKey() );
84 foreach ( array_chunk( $pages, $wgUpdateRowsPerJob )
as $pageChunk ) {
87 'table' => $this->params[
'table'],
102 global $wgUpdateRowsPerQuery, $wgUseFileCache, $wgUseSquid;
105 $pageIds = array_keys( $pages );
119 if ( isset( $this->params[
'rootJobTimestamp'] ) ) {
120 $touchTimestamp = $this->params[
'rootJobTimestamp'];
127 foreach ( array_chunk( $pageIds, $wgUpdateRowsPerQuery )
as $batch ) {
128 $dbw->update(
'page',
129 array(
'page_touched' => $dbw->timestamp( $touchTimestamp ) ),
132 "page_touched < " . $dbw->addQuotes( $dbw->timestamp( $touchTimestamp ) )
140 array(
'page_namespace',
'page_title' ),
141 array(
'page_id' => $pageIds,
'page_touched' => $dbw->timestamp( $touchTimestamp ) ),
152 if ( $wgUseFileCache ) {
160 return isset( $this->params[
'pages'] ) ? count( $this->params[
'pages'] ) : 1;
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
static newFromResult( $res)
static clearFileCache(Title $title)
Clear the file caches for a page for all actions.
& wfGetDB( $db, $groups=array(), $wiki=false)
Get a Database object.
__construct( $title, $params='')
static partitionBacklinkJob(Job $job, $bSize, $cSize, $opts=array())
Break down $job into approximately ($bSize/$cSize) leaf jobs and a single partition job that covers t...
static newFromTitles( $titles, $urlArr=array())
Create a SquidUpdate from an array of Title objects, or a TitleArray object.
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
Class to both describe a background job and handle jobs.
Job to purge the cache for all pages that link to or use another page or file.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
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.
invalidateTitles(array $pages)
array bool $params
Array of job parameters or false if none *.
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