ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilAtomQueryTransaction.php
Go to the documentation of this file.
1
<?
php
2
require_once(
'./Services/Database/exceptions/exception.ilAtomQueryException.php'
);
3
require_once(
'./Services/Database/interfaces/interface.ilAtomQuery.php'
);
4
12
class
ilAtomQueryTransaction
extends
ilAtomQueryBase
implements
ilAtomQuery
{
13
19
public
function
run
() {
20
$this->
checkBeforeRun
();
21
$this->
runWithTransactions
();
22
}
23
24
28
protected
function
runWithTransactions
() {
29
$i = 0;
30
do
{
31
$e = null;
32
try
{
33
$this->ilDBInstance->beginTransaction();
34
$this->
runQueries
();
35
$this->ilDBInstance->commit();
36
}
catch
(
ilDatabaseException
$e) {
37
$this->ilDBInstance->rollback();
38
if
($i >= self::ITERATIONS - 1) {
39
throw
$e;
40
}
41
}
42
$i ++;
43
}
while
($e instanceof
ilDatabaseException
);
44
}
45
}
ilAtomQueryBase\checkBeforeRun
checkBeforeRun()
Definition:
class.ilAtomQueryBase.php:333
ilAtomQueryTransaction
Class ilAtomQueryTransaction.
Definition:
class.ilAtomQueryTransaction.php:12
ilAtomQueryBase
Class ilAtomQuery.
Definition:
class.ilAtomQueryBase.php:13
ilAtomQueryBase\runQueries
runQueries()
Definition:
class.ilAtomQueryBase.php:324
ilDatabaseException
Class ilDatabaseException.
Definition:
exception.ilDatabaseException.php:11
ilAtomQueryTransaction\runWithTransactions
runWithTransactions()
Definition:
class.ilAtomQueryTransaction.php:28
ilAtomQuery
Interface ilAtomQuery.
Definition:
interface.ilAtomQuery.php:12
ilAtomQueryTransaction\run
run()
Fire your Queries.
Definition:
class.ilAtomQueryTransaction.php:19
php
Services
Database
classes
Atom
class.ilAtomQueryTransaction.php
Generated on Fri Jan 17 2025 19:01:11 for ILIAS by
1.8.13 (using
Doxyfile
)