Public Member Functions | |
add (FSTransaction $transaction) | |
Combine more items into a fancier transaction. | |
commit () | |
Perform final actions for success. | |
rollback () | |
Perform final actions for failure. | |
__construct () | |
addCommit ($action, $path) | |
addRollback ($action, $path) | |
Public Attributes | |
const | DELETE_FILE = 1 |
Private Member Functions | |
apply ($actions) |
FileStore methods may return one of these for undoable operations; you can then call its rollback() or commit() methods to perform final cleanup if dependent database work fails or succeeds.
Definition at line 294 of file FileStore.php.
FSTransaction::__construct | ( | ) |
Definition at line 325 of file FileStore.php.
FSTransaction::add | ( | FSTransaction $ | transaction | ) |
FSTransaction::addCommit | ( | $ | action, | |
$ | path | |||
) |
FSTransaction::addRollback | ( | $ | action, | |
$ | path | |||
) |
FSTransaction::apply | ( | $ | actions | ) | [private] |
Definition at line 338 of file FileStore.php.
References $action, $ok, $path, $result, wfDebug(), wfRestoreWarnings(), and wfSuppressWarnings().
Referenced by commit(), and rollback().
FSTransaction::commit | ( | ) |
Perform final actions for success.
Definition at line 311 of file FileStore.php.
References apply().
FSTransaction::rollback | ( | ) |
Perform final actions for failure.
Definition at line 319 of file FileStore.php.
References apply().
const FSTransaction::DELETE_FILE = 1 |
Definition at line 295 of file FileStore.php.
Referenced by FileStore::copyFile(), DeleteArchivedFiles(), and FileStore::deleteFile().