ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
interface.ilAtomQuery.php
Go to the documentation of this file.
1<?php
2require_once('./Services/Database/exceptions/exception.ilAtomQueryException.php');
3
12interface ilAtomQuery {
13
14 // Lock levels
15 const LOCK_WRITE = 1;
16 const LOCK_READ = 2;
17 // Isolation-Levels
22 // Anomalies
24 const ANO_DIRTY_READ = 2;
26 const ANO_PHANTOM = 4;
27
28
40 public function addTableLock($table_name);
41
42
63 public function addQueryCallable(callable $query);
64
65
86 public function replaceQueryCallable(callable $query);
87
88
94 public function run();
95
96
101 public static function checkIsolationLevel($isolation_level);
102
103
109 public function getIsolationLevel();
110
111
118 public function checkCallable(callable $query);
119}
An exception for terminatinating execution or to throw for unit testing.
Interface ilAtomQuery.
getIsolationLevel()
Returns the current Isolation-Level.
run()
Fire your Queries.
addTableLock($table_name)
Add table-names which are influenced by your queries, MyISAm has to lock those tables.
checkCallable(callable $query)
Provides a check if your callable is ready to be used in ilAtomQuery.
addQueryCallable(callable $query)
Every action on the database during this isolation has to be passed as Callable to ilAtomQuery.
replaceQueryCallable(callable $query)
Every action on the database during this isolation has to be passed as Callable to ilAtomQuery.
static checkIsolationLevel($isolation_level)