Go to the documentation of this file.
42 foreach ( $arr
as $item ) {
62 if ( is_object(
$title ) ) {
65 wfDebug(
"Warning: LinkBatch::addObj got invalid title object\n" );
74 public function add( $ns, $dbkey ) {
78 if ( !array_key_exists( $ns, $this->
data ) ) {
82 $this->
data[$ns][str_replace(
' ',
'_', $dbkey )] = 1;
110 return count( $this->
data );
160 foreach (
$res as $row ) {
163 $ids[
$title->getPrefixedDBkey()] = $row->page_id;
164 unset( $remaining[$row->page_namespace][$row->page_title] );
168 foreach ( $remaining
as $ns => $dbkeys ) {
169 foreach ( $dbkeys
as $dbkey => $unused ) {
172 $ids[
$title->getPrefixedDBkey()] = 0;
192 $fields =
array(
'page_id',
'page_namespace',
'page_title',
'page_len',
193 'page_is_redirect',
'page_latest' );
198 if ( strval( $this->caller ) !==
'' ) {
199 $caller .=
" (for {$this->caller})";
218 if ( !$wgContLang->needsGenderDistinction() ) {
223 $genderCache->doLinkBatch( $this->
data, $this->caller );
236 return $db->makeWhereFrom2d( $this->
data,
"{$prefix}_namespace",
"{$prefix}_title" );
static & makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
__construct( $arr=array())
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of data
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
doGenderQuery()
Do (and cache) {{GENDER:...}} information for userpages in this LinkBatch.
Class representing a list of titles The execute() method checks them all for existence and adds them ...
& wfGetDB( $db, $groups=array(), $wiki=false)
Get a Database object.
setCaller( $caller)
Use ->setCaller( METHOD ) to indicate which code is using this class.
wfProfileIn( $functionname)
Begin profiling of a function.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the content language as $wgContLang
setArray( $array)
Set the link list to a given 2-d array First key is the namespace, second is the DB key,...
execute()
Do the query and add the results to the LinkCache object.
getSize()
Returns the size of the batch.
constructSet( $prefix, $db)
Construct a WHERE clause which will match all the given titles.
wfProfileOut( $functionname='missing')
Stop profiling of a function.
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
$caller
For debugging which method is using this class.
$data
2-d array, first index namespace, second index dbkey, value arbitrary
doQuery()
Perform the existence test query, return a ResultWrapper with page_id fields.
wfDebug( $text, $dest='all')
Sends a line to the debug log if enabled or, optionally, to a comment in output.
presenting them properly to the user as errors is done by the caller $title
executeInto(&$cache)
Do the query and add the results to a given LinkCache object Return an array mapping PDBK to ID.
isEmpty()
Returns true if no pages have been added, false otherwise.
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
addResultToCache( $cache, $res)
Add a ResultWrapper containing IDs and titles to a LinkCache object.
static & singleton()
Get an instance of this class.