ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  // Lock levels
15  const LOCK_WRITE = 1;
16  const LOCK_READ = 2;
17  // Isolation-Levels
22  // Anomalies
23  const ANO_LOST_UPDATES = 1;
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 }
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)
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.