[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/deferred/ -> SqlDataUpdate.php (summary)

Base code for update jobs that put some secondary data extracted from article content into the database. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 159 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  __construct()
  beginTransaction()
  commitTransaction()
  abortTransaction()
  invalidatePages()

Functions
Functions that are not part of a class:

__construct( $withTransaction = true )   X-Ref
Constructor

param: bool $withTransaction Whether this update should be wrapped in a

beginTransaction()   X-Ref
Begin a database transaction, if $withTransaction was given as true in
the constructor for this SqlDataUpdate.

Because nested transactions are not supported by the Database class,
this implementation checks Database::trxLevel() and only opens a
transaction if none is already active.

commitTransaction()   X-Ref
Commit the database transaction started via beginTransaction (if any).


abortTransaction()   X-Ref
Abort the database transaction started via beginTransaction (if any).


invalidatePages( $namespace, array $dbkeys )   X-Ref
Invalidate the cache of a list of pages from a single namespace.
This is intended for use by subclasses.

param: int $namespace Namespace number
param: array $dbkeys



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1