Index: trunk/extensions/Wikidata/OmegaWiki/Transaction.php |
— | — | @@ -5,6 +5,26 @@ |
6 | 6 | require_once('RecordSet.php'); |
7 | 7 | require_once('Wikidata.php'); |
8 | 8 | |
| 9 | +/** |
| 10 | + * Transaction.php |
| 11 | + * |
| 12 | + * Manage internal transactions (NOT mysql transactions... confuzzeled yet?) |
| 13 | + * |
| 14 | + * To use: |
| 15 | + * |
| 16 | + * startNewTransaction($userId, $userIP, $comment, $dc) |
| 17 | + * then do a getUpdateTransactionId() to find the id you need for |
| 18 | + * add_transaction_id. |
| 19 | + * |
| 20 | + * Since this is not a mysql transaction, I don't THINK you need |
| 21 | + * to close it. If you do, it wasn't documented. |
| 22 | + * |
| 23 | + * There's also something to do with restrictions. This is the only |
| 24 | + * documentation you get so far. You're on your own now :-P |
| 25 | + * (Please document anything else that's really needed for anything) |
| 26 | + */ |
| 27 | + |
| 28 | + |
9 | 29 | interface QueryTransactionInformation { |
10 | 30 | public function getRestriction(Table $table); |
11 | 31 | public function getTables(); |