Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

DatabaseFunctions.php File Reference

Go to the source code of this file.

Functions

 wfQuery ($sql, $db, $fname="")
wfGetDB ($db=DB_LAST)
 wfBufferSQLResults ($newstate, $dbi=DB_LAST)
 wfIgnoreSQLErrors ($newstate, $dbi=DB_LAST)
 wfFreeResult ($res, $dbi=DB_LAST)
 wfFetchObject ($res, $dbi=DB_LAST)
 wfFetchRow ($res, $dbi=DB_LAST)
 wfNumRows ($res, $dbi=DB_LAST)
 wfNumFields ($res, $dbi=DB_LAST)
 wfFieldName ($res, $n, $dbi=DB_LAST)
 wfInsertId ($dbi=DB_LAST)
 wfDataSeek ($res, $row, $dbi=DB_LAST)
 wfLastErrno ($dbi=DB_LAST)
 wfLastError ($dbi=DB_LAST)
 wfAffectedRows ($dbi=DB_LAST)
 wfLastDBquery ($dbi=DB_LAST)
 wfSetSQL ($table, $var, $value, $cond, $dbi=DB_WRITE)
 wfGetSQL ($table, $var, $cond="", $dbi=DB_LAST)
 wfFieldExists ($table, $field, $dbi=DB_LAST)
 wfIndexExists ($table, $index, $dbi=DB_LAST)
 wfInsertArray ($table, $array, $fname="wfInsertArray", $dbi=DB_WRITE)
 wfGetArray ($table, $vars, $conds, $fname="wfGetArray", $dbi=DB_LAST)
 wfUpdateArray ($table, $values, $conds, $fname="wfUpdateArray", $dbi=DB_WRITE)

Variables

 $wgIsMySQL = false
 $wgIsPg = false


Function Documentation

wfAffectedRows dbi = DB_LAST  ) 
 

Definition at line 179 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by Profiler::logToDB().

wfBufferSQLResults newstate,
dbi = DB_LAST
 

Definition at line 51 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by convertLinks().

wfDataSeek res,
row,
dbi = DB_LAST
 

Definition at line 149 of file DatabaseFunctions.php.

References wfGetDB().

wfFetchObject res,
dbi = DB_LAST
 

Definition at line 89 of file DatabaseFunctions.php.

References DB_LAST, and wfGetDB().

Referenced by MediaWikiBagOStuff::_fetchobject(), MathRenderer::_recall(), LinkCache::addLinkObj(), compressOldPages(), convertLinks(), ImagePage::doDelete(), QueryPage::doFeed(), QueryPage::doQuery(), MakesysopForm::doSubmit(), WatchedItem::duplicateEntries(), Block::enumBlocks(), field_exists(), LinkCache::fillFromLinkscc(), LinksUpdate::fixBrokenLinks(), Phase2Importer::fixTitles(), Phase2Importer::fixUserOptions(), LogPage::getContent(), getTitlesByLength(), PageHistory::history(), ImagePage::imageLinks(), Phase2Importer::importWatchlists(), indexShowChunk(), indexShowToplevel(), initialiseMessages(), Block::load(), MessageCache::loadFromDB(), DifferenceEngine::loadText(), moveCustomMessages(), SquidUpdate::newFromBrokenLinksTo(), SquidUpdate::newFromLinksTo(), SelectPulser::next(), Image::nextHistoryLine(), page2xml(), LinkCache::preFill(), rebuildLinkTables(), rebuildRecentChangesTable(), rebuildRecentChangesTablePass1(), rebuildRecentChangesTablePass2(), rebuildTextIndex(), refreshLinks(), UndeleteForm::showHistory(), UndeleteForm::showList(), BookSourceList::showList(), SearchEngine::showResults(), UndeleteForm::showRevision(), UndeleteForm::undelete(), wfLoadSiteStats(), wfRecordUpload(), wfShowIndirectLinks(), wfSpecialBrokenRedirects(), wfSpecialContributions(), wfSpecialDisambiguations(), wfSpecialDoubleRedirects(), wfSpecialImagelist(), wfSpecialMispeelings(), wfSpecialMissingLanguageLinks(), wfSpecialRandompage(), wfSpecialRecentchanges(), wfSpecialRecentchangeslinked(), wfSpecialSelfLinks(), wfSpecialStatistics(), wfSpecialUnusedimages(), wfSpecialWatchlist(), and wfSpecialWhatlinkshere().

wfFetchRow res,
dbi = DB_LAST
 

Definition at line 99 of file DatabaseFunctions.php.

References DB_LAST, and wfGetDB().

wfFieldExists table,
field,
dbi = DB_LAST
 

Definition at line 219 of file DatabaseFunctions.php.

References wfGetDB().

wfFieldName res,
n,
dbi = DB_LAST
 

Definition at line 129 of file DatabaseFunctions.php.

References DB_LAST, n, and wfGetDB().

wfFreeResult res,
dbi = DB_LAST
 

Definition at line 78 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by MediaWikiBagOStuff::_freeresult(), compressOldPages(), convertLinks(), QueryPage::doFeed(), QueryPage::doQuery(), Block::enumBlocks(), Phase2Importer::fixTitles(), Phase2Importer::fixUserOptions(), Phase2Importer::importWatchlists(), indexShowToplevel(), Block::load(), MessageCache::loadFromDB(), moveCustomMessages(), SquidUpdate::newFromBrokenLinksTo(), SquidUpdate::newFromLinksTo(), SelectPulser::next(), rebuildRecentChangesTablePass2(), rebuildTextIndex(), SearchEngine::showResults(), UndeleteForm::undelete(), wfImportOldRevision(), wfSpecialBrokenRedirects(), wfSpecialDisambiguations(), wfSpecialDoubleRedirects(), wfSpecialImagelist(), wfSpecialMissingLanguageLinks(), wfSpecialRecentchanges(), wfSpecialRecentchangeslinked(), wfSpecialSelfLinks(), wfSpecialUnusedimages(), wfSpecialWatchlist(), and wfSpecialWhatlinkshere().

wfGetArray table,
vars,
conds,
fname = "wfGetArray",
dbi = DB_LAST
 

Definition at line 249 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by MessageCache::get(), moveCustomMessages(), and wfSpecialContributions().

& wfGetDB db = DB_LAST  ) 
 

Definition at line 41 of file DatabaseFunctions.php.

References $wgLoadBalancer.

Referenced by wfAffectedRows(), wfBufferSQLResults(), wfDataSeek(), wfFetchObject(), wfFetchRow(), wfFieldExists(), wfFieldName(), wfFreeResult(), wfGetArray(), wfGetSQL(), wfIgnoreSQLErrors(), wfIndexExists(), wfInsertArray(), wfInsertId(), wfLastDBquery(), wfLastErrno(), wfLastError(), wfNumFields(), wfNumRows(), wfQuery(), wfSetSQL(), and wfUpdateArray().

wfGetSQL table,
var,
cond = "",
dbi = DB_LAST
 

Definition at line 209 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by ImagePage::revert(), and UndeleteForm::showHistory().

wfIgnoreSQLErrors newstate,
dbi = DB_LAST
 

Definition at line 68 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by MakesysopForm::doSubmit(), and moveCustomMessages().

wfIndexExists table,
index,
dbi = DB_LAST
 

Definition at line 229 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by dropTextIndex().

wfInsertArray table,
array,
fname = "wfInsertArray",
dbi = DB_WRITE
 

Definition at line 239 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by RecentChange::save().

wfInsertId dbi = DB_LAST  ) 
 

Definition at line 139 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by LogPage::saveContent(), UndeleteForm::undelete(), and wfRecordUpload().

wfLastDBquery dbi = DB_LAST  ) 
 

Definition at line 189 of file DatabaseFunctions.php.

References wfGetDB().

wfLastErrno dbi = DB_LAST  ) 
 

Definition at line 159 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by MakesysopForm::doSubmit().

wfLastError dbi = DB_LAST  ) 
 

Definition at line 169 of file DatabaseFunctions.php.

References wfGetDB().

Referenced by MediaWikiBagOStuff::_dberror().

wfNumFields res,
dbi = DB_LAST
 

Definition at line 119 of file DatabaseFunctions.php.

References wfGetDB().

wfNumRows res,
dbi = DB_LAST
 

Definition at line 109 of file DatabaseFunctions.php.

References DB_LAST, and wfGetDB().

Referenced by LinkCache::addLinkObj(), compressOldPages(), QueryPage::doQuery(), MakesysopForm::doSubmit(), LinksUpdate::fixBrokenLinks(), Phase2Importer::fixTitles(), Phase2Importer::fixUserOptions(), LogPage::getContent(), PageHistory::history(), ImagePage::imageLinks(), Phase2Importer::importWatchlists(), isTemplateInitialised(), WatchedItem::isWatched(), Block::load(), DifferenceEngine::loadText(), Image::nextHistoryLine(), rebuildRecentChangesTablePass2(), UndeleteForm::showHistory(), SearchEngine::showResults(), wfImportOldRevision(), wfLoadSiteStats(), wfRecordUpload(), wfShowIndirectLinks(), wfSpecialContributions(), wfSpecialRecentchangeslinked(), wfSpecialWatchlist(), and wfSpecialWhatlinkshere().

wfQuery sql,
db,
fname = ""
 

Definition at line 27 of file DatabaseFunctions.php.

References $wgOut, wfGetDB(), and wfMsgNoDB().

Referenced by MediaWikiBagOStuff::_doquery(), MathRenderer::_recall(), LinkCache::addLinkObj(), WatchedItem::addWatch(), compressOldPages(), compressPage(), convertCurTable(), convertImageDirectories(), convertImageDirectoriesX(), convertLinks(), convertOldTable(), convertUserTable(), createTextIndex(), Block::delete(), ImagePage::doDelete(), LinksUpdate::doDumbUpdate(), QueryPage::doFeed(), QueryPage::doQuery(), MakesysopForm::doSubmit(), ViewCountUpdate::doUpdate(), UserTalkUpdate::doUpdate(), SiteStatsUpdate::doUpdate(), SearchUpdate::doUpdate(), LinksUpdate::doUpdate(), dropTextIndex(), WatchedItem::duplicateEntries(), Block::enumBlocks(), field_exists(), LinkCache::fillFromLinkscc(), LinksUpdate::fixBrokenLinks(), Phase2Importer::fixTitles(), Phase2Importer::fixUserOptions(), InsertBuffer::flush(), LogPage::getContent(), getTitlesByLength(), PageHistory::history(), ImagePage::imageLinks(), Phase2Importer::importCurData(), Phase2Importer::importLinkData(), Phase2Importer::importOldData(), Phase2Importer::importUserData(), Phase2Importer::importWatchlists(), indexShowChunk(), indexShowToplevel(), initialiseMessages(), Block::insert(), isTemplateInitialised(), WatchedItem::isWatched(), LinkCache::linksccClearBrokenLinksTo(), LinkCache::linksccClearLinksTo(), LinkCache::linksccClearPage(), Block::load(), MessageCache::loadFromDB(), DifferenceEngine::loadText(), Profiler::logToDB(), moveCustomMessages(), SquidUpdate::newFromBrokenLinksTo(), SquidUpdate::newFromLinksTo(), SelectPulser::next(), Image::nextHistoryLine(), page2xml(), LinkCache::preFill(), rebuildLinkTables(), rebuildRecentChangesTable(), rebuildRecentChangesTablePass1(), rebuildRecentChangesTablePass2(), rebuildTextIndex(), refillRandom(), refreshLinks(), removeOldTables(), WatchedItem::removeWatch(), renameOldTables(), MathRenderer::render(), RecentChange::save(), LogPage::saveContent(), LinkCache::saveToLinkscc(), UndeleteForm::showHistory(), UndeleteForm::showList(), BookSourceList::showList(), SearchEngine::showResults(), UndeleteForm::showRevision(), UndeleteForm::undelete(), Block::updateTimestamp(), wfImportOldRevision(), wfLoadSiteStats(), wfRecordUpload(), wfShowIndirectLinks(), wfSpecialBrokenRedirects(), wfSpecialContributions(), wfSpecialDisambiguations(), wfSpecialDoubleRedirects(), wfSpecialImagelist(), wfSpecialMispeelings(), wfSpecialMissingLanguageLinks(), wfSpecialRandompage(), wfSpecialRecentchanges(), wfSpecialRecentchangeslinked(), wfSpecialSelfLinks(), wfSpecialStatistics(), wfSpecialUnusedimages(), wfSpecialWatchlist(), and wfSpecialWhatlinkshere().

wfSetSQL table,
var,
value,
cond,
dbi = DB_WRITE
 

Definition at line 199 of file DatabaseFunctions.php.

References wfGetDB().

wfUpdateArray table,
values,
conds,
fname = "wfUpdateArray",
dbi = DB_WRITE
 

Definition at line 259 of file DatabaseFunctions.php.

References wfGetDB().


Variable Documentation

$wgIsMySQL = false
 

Definition at line 18 of file DatabaseFunctions.php.

Referenced by WatchedItem::addWatch(), ViewCountUpdate::doUpdate(), SiteStatsUpdate::doUpdate(), SearchUpdate::doUpdate(), AncientPagesPage::getSQL(), PageHistory::history(), LinkCache::linksccClearBrokenLinksTo(), LinkCache::linksccClearLinksTo(), DifferenceEngine::loadText(), LinkCache::saveToLinkscc(), wfSpecialRandompage(), and wfSpecialWatchlist().

$wgIsPg = false
 

Definition at line 21 of file DatabaseFunctions.php.

Referenced by ListUsersPage::getSQL(), ListAdminsPage::getSQL(), PageHistory::history(), DifferenceEngine::loadText(), wfSpecialContributions(), wfSpecialListusers(), and wfSpecialStatistics().


Generated on Tue Jun 29 23:40:08 2004 for Mediawiki by doxygen 1.3.7