ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
interface.ilAtomQuery.php
Go to the documentation of this file.
1 <?php
2 require_once('./Services/Database/exceptions/exception.ilAtomQueryException.php');
3 
12 interface ilAtomQuery
13 {
14 
15  // Lock levels
16  const LOCK_WRITE = 1;
17  const LOCK_READ = 2;
18  // Isolation-Levels
23  // Anomalies
24  const ANO_LOST_UPDATES = 1;
25  const ANO_DIRTY_READ = 2;
27  const ANO_PHANTOM = 4;
28 
29 
41  public function addTableLock($table_name);
42 
43 
64  public function addQueryCallable(callable $query);
65 
66 
87  public function replaceQueryCallable(callable $query);
88 
89 
95  public function run();
96 
97 
102  public static function checkIsolationLevel($isolation_level);
103 
104 
110  public function getIsolationLevel();
111 
112 
119  public function checkCallable(callable $query);
120 }
run()
Fire your Queries.
addQueryCallable(callable $query)
Every action on the database during this isolation has to be passed as Callable to ilAtomQuery...
addTableLock($table_name)
Add table-names which are influenced by your queries, MyISAm has to lock those tables.
Interface ilAtomQuery.
getIsolationLevel()
Returns the current Isolation-Level.
static checkIsolationLevel($isolation_level)
$query
replaceQueryCallable(callable $query)
Every action on the database during this isolation has to be passed as Callable to ilAtomQuery...
checkCallable(callable $query)
Provides a check if your callable is ready to be used in ilAtomQuery.