Go to the documentation of this file.
80 if ( empty( $updates ) ) {
81 return; # nothing to
do
84 $open_transactions =
array();
94 foreach ( $updates
as $update ) {
95 $update->beginTransaction();
96 $open_transactions[] = $update;
100 foreach ( $updates
as $update ) {
105 while ( count( $open_transactions ) > 0 ) {
106 $trans = array_pop( $open_transactions );
107 $trans->commitTransaction();
109 }
catch ( Exception $ex ) {
111 wfDebug(
"Caught exception, will rethrow after rollback: " .
112 $ex->getMessage() .
"\n" );
116 while ( count( $open_transactions ) > 0 ) {
117 $trans = array_pop( $open_transactions );
118 $trans->rollbackTransaction();
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 runUpdates( $updates)
Convenience method, calls doUpdate() on every DataUpdate in the array.
Abstract base class for update jobs that do something with some secondary data extracted from article...
commitTransaction()
Commit the transaction started via beginTransaction, if any.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
beginTransaction()
Begin an appropriate transaction, if any.
wfDebug( $text, $dest='all')
Sends a line to the debug log if enabled or, optionally, to a comment in output.
__construct()
Constructor.
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
rollbackTransaction()
Abort / roll back the transaction started via beginTransaction, if any.
Interface that deferrable updates should implement.