MediaWiki  REL1_19
DeferredUpdates Class Reference

Class for mananging the deferred updates. More...

List of all members.

Static Public Member Functions

static addHTMLCacheUpdate ($title, $table)
 HTMLCacheUpdates are the most common deferred update people use.
static addUpdate (DeferrableUpdate $update)
 Add an update to the deferred list.
static clearPendingUpdates ()
 Clear all pending updates without performing them.
static doUpdates ($commit= '')
 Do any deferred updates and clear the list.

Static Private Attributes

static $updates = array()
 Store of updates to be deferred until the end of the request.

Detailed Description

Class for mananging the deferred updates.

Since:
1.19

Definition at line 20 of file DeferredUpdates.php.


Member Function Documentation

static DeferredUpdates::addHTMLCacheUpdate ( title,
table 
) [static]

HTMLCacheUpdates are the most common deferred update people use.

This is a shortcut method for that.

See also:
HTMLCacheUpdate::__construct()
Parameters:
$title
$table

Definition at line 41 of file DeferredUpdates.php.

References $title, and addUpdate().

Referenced by WikiPage\onArticleEdit().

Here is the call graph for this function:

Here is the caller graph for this function:

static DeferredUpdates::addUpdate ( DeferrableUpdate update) [static]

Add an update to the deferred list.

Parameters:
$updateDeferrableUpdate Some object that implements doUpdate()

Definition at line 30 of file DeferredUpdates.php.

Referenced by addHTMLCacheUpdate(), WikiPage\doDeleteUpdates(), WikiPage\doEditUpdates(), and WikiPage\doViewUpdates().

Here is the caller graph for this function:

Clear all pending updates without performing them.

Generally, you don't want or need to call this. Unit tests need it though.

Definition at line 85 of file DeferredUpdates.php.

References $wgDeferredUpdateList.

Referenced by doUpdates(), UploadFromUrlTestSuite\setUp(), and ParserTest\setUp().

Here is the caller graph for this function:

static DeferredUpdates::doUpdates ( commit = '') [static]

Do any deferred updates and clear the list.

Parameters:
$commitString: set to 'commit' to commit after every update to prevent lock contention

Definition at line 51 of file DeferredUpdates.php.

References $updates, $wgDeferredUpdateList, clearPendingUpdates(), wfGetDB(), wfProfileIn(), and wfProfileOut().

Referenced by WikiPage\doEdit(), MediaWiki\finalCleanup(), BackupReader\showReport(), and wfDoUpdates().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

DeferredUpdates::$updates = array() [static, private]

Store of updates to be deferred until the end of the request.

Definition at line 24 of file DeferredUpdates.php.

Referenced by doUpdates().


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