ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ 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
{
14
20
public
function
run
()
21
{
22
$this->
checkBeforeRun
();
23
$this->
runWithTransactions
();
24
}
25
26
30
protected
function
runWithTransactions
()
31
{
32
$i
= 0;
33
do
{
34
$e = null;
35
try
{
36
$this->ilDBInstance->beginTransaction();
37
$this->
runQueries
();
38
$this->ilDBInstance->commit();
39
}
catch
(
ilDatabaseException
$e) {
40
$this->ilDBInstance->rollback();
41
if
(
$i
>= self::ITERATIONS - 1) {
42
throw
$e;
43
}
44
}
45
$i
++;
46
}
while
($e instanceof
ilDatabaseException
);
47
}
48
}
ilAtomQueryBase\checkBeforeRun
checkBeforeRun()
Definition:
class.ilAtomQueryBase.php:349
ilAtomQueryTransaction
Class ilAtomQueryTransaction.
Definition:
class.ilAtomQueryTransaction.php:12
ilAtomQueryBase
Class ilAtomQuery.
Definition:
class.ilAtomQueryBase.php:13
ilAtomQueryBase\runQueries
runQueries()
Definition:
class.ilAtomQueryBase.php:339
ilDatabaseException
Class ilDatabaseException.
Definition:
exception.ilDatabaseException.php:11
ilAtomQueryTransaction\runWithTransactions
runWithTransactions()
Definition:
class.ilAtomQueryTransaction.php:30
ilAtomQuery
Interface ilAtomQuery.
Definition:
interface.ilAtomQuery.php:12
ilAtomQueryTransaction\run
run()
Fire your Queries.
Definition:
class.ilAtomQueryTransaction.php:20
$i
$i
Definition:
disco.tpl.php:19
php
Services
Database
classes
Atom
class.ilAtomQueryTransaction.php
Generated on Thu Jan 30 2025 19:01:57 for ILIAS by
1.8.13 (using
Doxyfile
)