ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
interface.ilAtomQuery.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27interface ilAtomQuery
28{
29 // Lock levels
30 public const LOCK_WRITE = 1;
31 public const LOCK_READ = 2;
32 // Isolation-Levels
33 public const ISOLATION_READ_UNCOMMITED = 1;
34 public const ISOLATION_READ_COMMITED = 2;
35 public const ISOLATION_REPEATED_READ = 3;
36 public const ISOLATION_SERIALIZABLE = 4;
37 // Anomalies
38 public const ANO_LOST_UPDATES = 1;
39 public const ANO_DIRTY_READ = 2;
40 public const ANO_NON_REPEATED_READ = 3;
41 public const ANO_PHANTOM = 4;
42
49 public function addTableLock(string $table_name): ilTableLockInterface;
50
66 public function addQueryCallable(callable $query): void;
67
83 public function replaceQueryCallable(callable $query): void;
84
89 public function run(): void;
90
94 public static function checkIsolationLevel(int $isolation_level): void;
95
99 public function getIsolationLevel(): int;
100
104 public function checkCallable(callable $query): bool;
105}
Interface ilAtomQuery Use ilAtomQuery to fire Database-Actions which have to be done without beeing i...
getIsolationLevel()
Returns the current Isolation-Level.
run()
Fire your Queries.
addTableLock(string $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(int $isolation_level)
Class ilTableLockInterface Defines methods, which a Table-Lock used in ilAtomQuery provides.